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/virtual_host.cfg.lua.j2 | 52 ++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 23 deletions(-) (limited to 'files/virtual_host.cfg.lua.j2') 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 %} } -- cgit v1.2.3