diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 16:34:31 +0100 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 17:57:54 +0100 |
| commit | eaf1e70bed9fb6029800a8d8ba5b0b53b4f32929 (patch) | |
| tree | 345a5c52e8deb50cec10b6120cf60c25b1dea238 /files/virtual_host.cfg.lua.j2 | |
| parent | fbb14450ea04f955aab4d1b9c4eab05d5f8707c6 (diff) | |
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!
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
| -rw-r--r-- | files/virtual_host.cfg.lua.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
