diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-02-05 11:58:12 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-02-05 11:58:12 +0000 |
commit | 09c5bd818ded489378104f523fcede23443c5092 (patch) | |
tree | b862fcaa383e165a1f3e995ad4625f55845e3bc8 /files/prosody.cfg.lua.j2 | |
parent | 58ce069ae98a74ec95db89e8dda6e1ff188c3b77 (diff) |
Bulk update with all changes currently in prod
Diffstat (limited to 'files/prosody.cfg.lua.j2')
-rw-r--r-- | files/prosody.cfg.lua.j2 | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/files/prosody.cfg.lua.j2 b/files/prosody.cfg.lua.j2 new file mode 100644 index 0000000..53d3d48 --- /dev/null +++ b/files/prosody.cfg.lua.j2 @@ -0,0 +1,90 @@ +-- SPDX-FileCopyrightText: 2024 Matthew Fennell <matthew@fennell.dev> +-- +-- SPDX-License-Identifier: AGPL-3.0-only + +admins = { } + +plugin_paths = { "/usr/local/lib/prosody/modules" } + +modules_enabled = { + "admin_adhoc"; + "admin_shell"; + "blocklist"; + "bookmarks"; + "carbons"; + "cloud_notify"; + "csi_battery_saver"; + "dialback"; + "disco"; + "external_services"; + "limits"; + "mam"; + "mimicking"; + "pep"; + "ping"; + "posix"; + "private"; + "proxy65"; + "register"; + "register_apps"; + "roster"; + "saslauth"; + "server_contact_info"; + "smacks"; + "time"; + "tls"; + "turn_external"; + "uptime"; + "vcard4"; + "vcard_legacy"; + "version"; +} + +modules_disabled = { } + +pidfile = "/run/prosody/prosody.pid"; + +log = { + info = "/var/log/prosody/prosody.log"; + error = "/var/log/prosody/prosody.err"; + { levels = { "error" }; to = "syslog"; }; +} + +s2s_secure_auth = true +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 = { + rate = "10kb/s"; + }; + s2sin = { + rate = "30kb/s"; + }; +} + +archive_expires_after = "10y" + +storage = "sql" +sql = { + driver = "PostgreSQL"; + database = "prosody"; + username = "prosody"; + password = "{{ postgres_password }}"; +} + +Include "conf.d/*.cfg.lua" |