From eaf1e70bed9fb6029800a8d8ba5b0b53b4f32929 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 21 Sep 2025 16:34:31 +0100 Subject: Place s2s modules behind a flag We do not need s2s modules or config for a single-user transport oriented server. Likewise, we do not need admin or abuse contacts if s2s is disabled. No messages can escape, and it would be impossible to contact them regardless! --- files/virtual_host.cfg.lua.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'files/virtual_host.cfg.lua.j2') diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 97dcef8..d972e74 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -4,9 +4,11 @@ VirtualHost "{{ virtual_host }}" +{% if not is_transport_server %} admins = { "admin@{{ virtual_host }}" } +{% endif %} modules_enabled = { @@ -36,6 +38,7 @@ site_apps_show = { } {% endif %} +{% if not is_transport_server %} contact_info = { abuse = { "xmpp:abuse@{{ virtual_host }}" @@ -44,6 +47,7 @@ contact_info = { "xmpp:admin@{{ virtual_host }}" }; } +{% endif %} {% if not is_transport_server %} allow_user_invites = true -- cgit v1.2.3