summaryrefslogtreecommitdiff
path: root/files/prosody.cfg.lua.j2
diff options
context:
space:
mode:
Diffstat (limited to 'files/prosody.cfg.lua.j2')
-rw-r--r--files/prosody.cfg.lua.j290
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"