summaryrefslogtreecommitdiff
path: root/files/virtual_host.cfg.lua.j2
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-12-31 15:45:12 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-12-31 15:45:12 +0000
commit67f5e1375ab6203a6191d4f18ed5ecedd174b757 (patch)
treec91b3ec6a82fd34f5c42bb34f12776f6c0ac691c /files/virtual_host.cfg.lua.j2
parentc00f152d8b4f83a100cd5bafb2c46694768fbe2e (diff)
Use explicitly defined admins from inventory
I used to have separate admin@ and abuse@ accounts for each virtual host. I don't really need that separation, though, as I am the only admin, and no-one has ever contacted them anyway. So, set all admin accounts to the account I actually use and check every day anyway.
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
-rw-r--r--files/virtual_host.cfg.lua.j217
1 files changed, 3 insertions, 14 deletions
diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2
index a5ab87e..a8243e5 100644
--- a/files/virtual_host.cfg.lua.j2
+++ b/files/virtual_host.cfg.lua.j2
@@ -4,11 +4,11 @@
VirtualHost "{{ virtual_host }}"
-{% if not is_transport_server %}
admins = {
- "admin@{{ virtual_host }}"
+{% for admin in admins %}
+ "{{ admin }}"
+{% endfor %}
}
-{% endif %}
modules_enabled = {
@@ -39,17 +39,6 @@ site_apps_show = {
{% endif %}
{% if not is_transport_server %}
-contact_info = {
- abuse = {
- "xmpp:abuse@{{ virtual_host }}"
- };
- admin = {
- "xmpp:admin@{{ virtual_host }}"
- };
-}
-{% endif %}
-
-{% if not is_transport_server %}
allow_user_invites = true
http_external_url = "https://{{ virtual_host }}/"
site_name = "{{ virtual_host }}"