diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/prosody.cfg.lua.j2 (renamed from files/prosody.cfg.lua) | 21 | ||||
-rw-r--r-- | files/turnserver.conf.j2 | 11 | ||||
-rw-r--r-- | files/virtual_host.cfg.lua.j2 | 27 |
3 files changed, 56 insertions, 3 deletions
diff --git a/files/prosody.cfg.lua b/files/prosody.cfg.lua.j2 index d75781a..53d3d48 100644 --- a/files/prosody.cfg.lua +++ b/files/prosody.cfg.lua.j2 @@ -17,9 +17,6 @@ modules_enabled = { "dialback"; "disco"; "external_services"; - "invites"; - "invites_adhoc"; - "invites_register"; "limits"; "mam"; "mimicking"; @@ -29,11 +26,14 @@ modules_enabled = { "private"; "proxy65"; "register"; + "register_apps"; "roster"; "saslauth"; + "server_contact_info"; "smacks"; "time"; "tls"; + "turn_external"; "uptime"; "vcard4"; "vcard_legacy"; @@ -55,11 +55,18 @@ s2s_require_encryption = true c2s_require_encryption = true authentication = "internal_hashed" certificates = "certs" +c2s_direct_tls_ports = { 5223 } +s2s_direct_tls_ports = { 5270 } -- From Monal considerations for XMPP server admins smacks_hibernation_time = 86400 allow_registration = true +site_apps_show = { + "conversations"; + "dino"; + "monal"; +} limits = { c2s = { @@ -72,4 +79,12 @@ limits = { archive_expires_after = "10y" +storage = "sql" +sql = { + driver = "PostgreSQL"; + database = "prosody"; + username = "prosody"; + password = "{{ postgres_password }}"; +} + Include "conf.d/*.cfg.lua" diff --git a/files/turnserver.conf.j2 b/files/turnserver.conf.j2 new file mode 100644 index 0000000..05c956c --- /dev/null +++ b/files/turnserver.conf.j2 @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev> +# +# SPDX-License-Identifier: AGPL-3.0-only + +syslog +no-rfc5780 +no-stun-backward-compatibility +response-origin-only-with-rfc5780 +realm=turn.{{ virtual_host }} +use-auth-secret +static-auth-secret={{ turn_secret }} diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 26058cb..5a6064a 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -4,5 +4,32 @@ VirtualHost "{{ virtual_host }}" +turn_external_host = "turn.{{ virtual_host }}" +turn_external_secret = "{{ turn_secret }}" + +site_name = "{{ virtual_host }}" + Component "upload.{{ virtual_host }}" "http_file_share" http_file_share_expires_after = 10 * 365 * 24 * 60 * 60 + +Component "conference.{{ virtual_host }}" "muc" +modules_enabled = { + "muc_mam"; + "vcard_muc"; +} + +muc_log_expires_after = "10y" +log_all_rooms = true + +restrict_room_creation = "local" +max_history_messages = 1000 +enforce_registered_nickname = true + +muc_room_default_public = false +muc_room_default_persistent = true +muc_room_default_members_only = false +muc_room_default_moderated = false +muc_room_default_public_jids = true +muc_room_default_change_subject = false +muc_room_default_history_length = 1000 +muc_room_default_language = "en" |