summaryrefslogtreecommitdiff
path: root/files/virtual_host.cfg.lua.j2
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-11-12 19:24:34 +0000
committerMatthew Fennell <matthew@fennell.dev>2026-11-12 19:24:34 +0000
commitfb49c9e2bc80598a8e53b8d477c795a396fadb79 (patch)
tree29dd9f2cad5379ef19489ed89c3189bcd43d4bec /files/virtual_host.cfg.lua.j2
parent456fbc037b0ba473e20a8ca2e3223405d4e8cb11 (diff)
Use xmpp-server role from ansible-roles repoHEADmaster
Now that the role has been migrated, we can remove the manual steps and just use it here.
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
-rw-r--r--files/virtual_host.cfg.lua.j2107
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 %}