diff options
| -rw-r--r-- | files/prosody.cfg.lua.j2 | 30 | ||||
| -rw-r--r-- | files/virtual_host.cfg.lua.j2 | 52 |
2 files changed, 51 insertions, 31 deletions
diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index 3ce2342..bb9a08c 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -2,7 +2,9 @@ -- -- SPDX-License-Identifier: AGPL-3.0-only -plugin_paths = { "/usr/local/lib/prosody/modules" } +plugin_paths = { + "/usr/local/lib/prosody/modules" +} modules_enabled = { @@ -70,14 +72,20 @@ modules_enabled = { } -modules_disabled = { } +modules_disabled = { +} pidfile = "/run/prosody/prosody.pid"; log = { info = "/var/log/prosody/prosody.log"; error = "/var/log/prosody/prosody.err"; - { levels = { "error" }; to = "syslog"; }; + { + levels = { + "error" + }; + to = "syslog"; + }; } s2s_secure_auth = true @@ -85,12 +93,18 @@ s2s_require_encryption = true c2s_require_encryption = true authentication = "internal_hashed" certificates = "certs" -c2s_direct_tls_ports = { 5223 } -s2s_direct_tls_ports = { 5270 } +c2s_direct_tls_ports = { + 5223 +} +s2s_direct_tls_ports = { + 5270 +} use_dane = true {% if not is_transport_server %} -anti_spam_services = { "xmppbl.org" } +anti_spam_services = { + "xmppbl.org" +} report_forward_to = { "submit@reports.xmppbl.org"; } @@ -112,8 +126,8 @@ registration_invite_only = true {% if not is_transport_server %} firewall_scripts = { - "module:scripts/spam-blocking.pfw"; - "module:script/spam-blocklists.pfw"; + "module:scripts/spam-blocking.pfw"; + "module:script/spam-blocklists.pfw"; } {% endif %} diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 5452481..97dcef8 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -4,39 +4,45 @@ VirtualHost "{{ virtual_host }}" -admins = { "admin@{{ virtual_host }}" }; +admins = { + "admin@{{ virtual_host }}" +} modules_enabled = { - -- Core - "groups"; + -- Core + "groups"; - -- Invites + -- Invites {% if not is_transport_server %} - "invites"; - "invites_adhoc"; - "invites_api"; - "invites_page"; - "invites_register"; - "invites_tracking"; - "register"; - "register_apps"; + "invites"; + "invites_adhoc"; + "invites_api"; + "invites_page"; + "invites_register"; + "invites_tracking"; + "register"; + "register_apps"; {% endif %} } {% if not is_transport_server %} site_apps_show = { - "conversations"; - "dino"; - "gajim"; - "monal"; + "conversations"; + "dino"; + "gajim"; + "monal"; } {% endif %} contact_info = { - abuse = { "xmpp:abuse@{{ virtual_host }}" }; - admin = { "xmpp:admin@{{ virtual_host }}" }; + abuse = { + "xmpp:abuse@{{ virtual_host }}" + }; + admin = { + "xmpp:admin@{{ virtual_host }}" + }; } {% if not is_transport_server %} @@ -51,13 +57,13 @@ http_file_share_global_quota = 5 * 1024 * 1024 * 1024 Component "conference.{{ virtual_host }}" "muc" modules_enabled = { - "muc"; - "muc_mam"; + "muc"; + "muc_mam"; - -- Spam + -- Spam {% if not is_transport_server %} - "muc_moderation"; - "muc_rtbl"; + "muc_moderation"; + "muc_rtbl"; {% endif %} } |
