diff options
author | Matthew Fennell <matthew@fennell.dev> | 2025-07-06 19:57:44 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2025-07-06 19:57:44 +0100 |
commit | 9ad2f38d254b01611e874ac5aa8cddaf5aa28732 (patch) | |
tree | 3945f073109f8f055c1a944092590d408207bd73 /files/prosody.cfg.lua.j2 | |
parent | de781b09a28202d61d6ad7b6269c589c51468f75 (diff) |
Share turnserver between vhosts on same machine
I made a mistake in the original configuration - I tried to give each
virtual host a separate turnserver on its own subdomain. However, since
koyo.haus and fennell.dev (and likewise in nonprod) share a virtual
machine, they can only have one turnserver between them (in the
turnserver.conf, there can only be a single realm).
Therefore, always point to koyo.haus for the turnserver in each
environment.
Diffstat (limited to 'files/prosody.cfg.lua.j2')
-rw-r--r-- | files/prosody.cfg.lua.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index d56381c..0bcf6ba 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -33,6 +33,7 @@ modules_enabled = { "stanza_debug"; "time"; "tls"; + "turn_external"; "uptime"; "vcard4"; "vcard_legacy"; @@ -61,6 +62,9 @@ c2s_direct_tls_ports = { 5223 } s2s_direct_tls_ports = { 5270 } use_dane = true +turn_external_host = "{{ turn_server }}" +turn_external_secret = "{{ turn_secret }}" + -- From Monal considerations for XMPP server admins smacks_hibernation_time = 86400 |