diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 18:16:10 +0100 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 18:16:10 +0100 |
| commit | e8210ca95b35e2248702b4ffb7c244a90cdd94eb (patch) | |
| tree | 52ad4b503a50ec0fd0ca2386d5a38076559b06ff | |
| parent | d554720b7c9303ebe52ad3019f8f479af9c9361f (diff) | |
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.
| -rw-r--r-- | files/prosody.cfg.lua.j2 | 8 | ||||
| -rw-r--r-- | 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"; |
