summaryrefslogtreecommitdiff
path: root/files/virtual_host.cfg.lua.j2
diff options
context:
space:
mode:
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
-rw-r--r--files/virtual_host.cfg.lua.j28
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 %}