diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 12:45:28 +0100 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2025-09-21 12:45:28 +0100 |
| commit | fea8112921b688c508bbab34587dc3c6661c72fa (patch) | |
| tree | d8c69ff3a5535418298cfe6f61b96898b47d7ed8 /files/virtual_host.cfg.lua.j2 | |
| parent | c6db3465d868b11f1e379c31db4b1166d29d177c (diff) | |
Place invites behind a flag
I am planning on deploying a new single-user server, without s2s connections or
other features, specifically for transports.
This necessiates splitting off some functionality behind a flag, so that it is
only enabled for non-transport ("standard") servers.
Diffstat (limited to 'files/virtual_host.cfg.lua.j2')
| -rw-r--r-- | files/virtual_host.cfg.lua.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index f7c7379..afc9774 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -7,7 +7,12 @@ VirtualHost "{{ virtual_host }}" admins = { "admin@{{ virtual_host }}" }; modules_enabled = { + + -- Core "groups"; + + -- Invites +{% if not is_transport_server %} "invites"; "invites_adhoc"; "invites_api"; @@ -16,6 +21,8 @@ modules_enabled = { "invites_tracking"; "register"; "register_apps"; +{% endif %} + } site_apps_show = { @@ -30,9 +37,11 @@ contact_info = { admin = { "xmpp:admin@{{ virtual_host }}" }; } +{% if not is_transport_server %} allow_user_invites = true http_external_url = "https://{{ virtual_host }}/" site_name = "{{ virtual_host }}" +{% endif %} Component "upload.{{ virtual_host }}" "http_file_share" http_file_share_size_limit = 300 * 1024 * 1024 |
