diff options
Diffstat (limited to 'files')
| -rw-r--r-- | files/prosody.cfg.lua.j2 | 19 | ||||
| -rw-r--r-- | files/virtual_host.cfg.lua.j2 | 4 |
2 files changed, 21 insertions, 2 deletions
diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index 85ab04b..c05c730 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -31,8 +31,6 @@ modules_enabled = { "private"; "proxy65"; "roster"; - "s2s_auth_dane_in"; - "s2s_bidi"; "sasl2"; "sasl2_bind2"; "sasl2_fast"; @@ -69,9 +67,20 @@ modules_enabled = { "watch_spam_reports"; {% endif %} + -- S2S +{% if not is_transport_server %} + "s2s_auth_dane_in"; + "s2s_bidi"; +{% endif %} + } modules_disabled = { + +{% if is_transport_server %} + "s2s"; +{% endif %} + } pidfile = "/run/prosody/prosody.pid"; @@ -87,14 +96,20 @@ log = { }; } +{% if not is_transport_server %} s2s_secure_auth = true +{% endif %} + c2s_direct_tls_ports = { 5223 } + +{% if not is_transport_server %} s2s_direct_tls_ports = { 5270 } use_dane = true +{% endif %} {% if not is_transport_server %} anti_spam_services = { 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 |
