From 994bc6e0e793876e7ce544ce9c892f1a5b157eca Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 21 Sep 2025 16:09:58 +0100 Subject: Reformat prosody config files Use consistent 4-space indentation. Do not allow new scopes to be opened and closed on the same line. This allows me to more easily add jinja if statements without having to make formatting changes at the same time. --- files/prosody.cfg.lua.j2 | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'files/prosody.cfg.lua.j2') 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 %} -- cgit v1.2.3