diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-05-23 21:02:51 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-05-23 21:02:51 +0100 |
commit | b997dabfebe74422de510884b68480fcb3bf1780 (patch) | |
tree | 08475967e5b2fa368bc1c3e76aab8e8d58562745 /files/virtual_host.cfg.lua.j2 | |
parent | 850275469f7da1a9829edfe45bd40b40d3cc6a02 (diff) |
Add anonymous subdomain when requested
This will primiarly be used for motoristic.
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
-rw-r--r-- | files/virtual_host.cfg.lua.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 272e24b..77726ff 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -13,6 +13,7 @@ modules_enabled = { "invites_register"; "register"; "register_apps"; + "turn_external"; } contact_info = { @@ -39,3 +40,10 @@ log_all_rooms = true restrict_room_creation = "local" muc_room_default_public = false muc_room_default_public_jids = true + +{% if anonymous_login %} + +VirtualHost "anon.{{ virtual_host }}" +authentication = "anonymous" + +{% endif %} |