diff options
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
| -rw-r--r-- | files/virtual_host.cfg.lua.j2 | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 deleted file mode 100644 index 389e98e..0000000 --- a/files/virtual_host.cfg.lua.j2 +++ /dev/null @@ -1,107 +0,0 @@ --- SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev> --- --- SPDX-License-Identifier: AGPL-3.0-or-later - -VirtualHost "{{ virtual_host }}" - -admins = { -{% for admin in admins %} - "{{ admin }}" -{% endfor %} -} - -modules_enabled = { - - -- Core - "groups"; - -{% if not is_transport_server %} - -- Invites - "invites"; - "invites_adhoc"; - "invites_api"; - "invites_page"; - "invites_register"; - "invites_register_web"; - "invites_tracking"; - "register"; - "register_apps"; -{% endif %} - -} - -{% if not is_transport_server %} -site_apps_show = { - "conversations"; - "dino"; - "gajim"; - "monal"; -} -{% endif %} - -{% if not is_transport_server %} -allow_user_invites = true -site_name = "{{ virtual_host }}" -{% endif %} - -privileged_entities = { -{% for transport in transports | default([]) %} - ["{{ transport.subdomain }}.{{ virtual_host }}"] = { - roster = "both"; - message = "outgoing"; - iq = { - ["http://jabber.org/protocol/pubsub"] = "both"; - ["http://jabber.org/protocol/pubsub#owner"] = "set"; - }; - }; -{% endfor %} -} - -Component "upload.{{ virtual_host }}" "http_file_share" -http_file_share_size_limit = 300 * 1024 * 1024 -http_file_share_global_quota = 5 * 1024 * 1024 * 1024 - -{% if is_transport_server %} -http_file_share_access = { -{% for transport in transports | default([]) %} - "{{ transport.subdomain }}.{{ virtual_host }}"; -{% endfor %} -} -{% endif %} - -Component "proxy.{{ virtual_host }}" "proxy65" - -proxy65_address = "chat.{{ virtual_host }}" - -modules_disabled = { - "s2s"; -} - -Component "conference.{{ virtual_host }}" "muc" -modules_enabled = { - "muc"; - "muc_mam"; - - -- Spam -{% if not is_transport_server %} - "muc_moderation"; - "muc_rtbl"; -{% endif %} -} - -log_all_rooms = true -restrict_room_creation = "local" -muc_room_default_public = false -muc_room_default_public_jids = true - -{% if not is_transport_server %} -muc_rtbl_jid = "xmppbl.org" -{% endif %} - -{% for transport in transports | default([]) %} -Component "{{ transport.subdomain }}.{{ virtual_host }}" -component_secret = "{{ transport.secret }}" -modules_enabled = { - "privilege"; -} -{% endfor %} |
