From e8210ca95b35e2248702b4ffb7c244a90cdd94eb Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 21 Sep 2025 18:16:10 +0100 Subject: Move section header comments inside if blocks If a section is not enabled on a particular server, that section's header comment should not be visible. --- files/prosody.cfg.lua.j2 | 8 ++++---- files/virtual_host.cfg.lua.j2 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 index 9955c54..ae00b46 100644 --- a/files/prosody.cfg.lua.j2 +++ b/files/prosody.cfg.lua.j2 @@ -48,27 +48,27 @@ modules_enabled = { "version"; "websocket"; - -- Invites {% if not is_transport_server %} + -- Invites "http"; "http_libjs"; {% endif %} - -- Turn {% if not is_transport_server %} + -- Turn "turn_external"; {% endif %} - -- Spam {% if not is_transport_server %} + -- Spam "anti_spam"; "report_forward"; "spam_reporting"; "watch_spam_reports"; {% endif %} - -- S2S {% if not is_transport_server %} + -- S2S "s2s_auth_dane_in"; "s2s_bidi"; {% endif %} diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 43d7b31..4b79710 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -15,8 +15,8 @@ modules_enabled = { -- Core "groups"; - -- Invites {% if not is_transport_server %} + -- Invites "invites"; "invites_adhoc"; "invites_api"; -- cgit v1.2.3