diff --git a/hosts/jabber/default.nix b/hosts/jabber/default.nix index a3b25149..810f9dc5 100644 --- a/hosts/jabber/default.nix +++ b/hosts/jabber/default.nix @@ -71,9 +71,7 @@ in postgresql = { enable = true; - ensureDatabases = [ - "prosody" - ]; + ensureDatabases = [ "prosody" ]; ensureUsers = [{ name = "prosody"; ensurePermissions = { @@ -83,13 +81,14 @@ in package = pkgs.postgresql_16; upgrade.stopServices = [ "prosody" ]; }; + #TODO: txt records? prosody = { enable = true; allowRegistration = false; admins = [ "astro@spaceboyz.net" "0@jabber.c3d2.de" "nek0@c3d2.de" ]; package = pkgs.prosody.override { - withCommunityModules = [ "smacks" "csi" "cloud_notify" "extdisco" "firewall" ]; + withCommunityModules = [ "cloud_notify" "csi" "extdisco" "firewall" "smacks" ]; withExtraLuaPackages = luaPackages: with luaPackages; [ luadbi-postgresql ]; @@ -98,8 +97,8 @@ in modules = { # HTTP stuff bosh = true; - websocket = true; http_files = true; + websocket = true; admin_telnet = true; announce = true; @@ -166,7 +165,7 @@ in BOUNCE=policy-violation (Your domain has been blacklisted due to spam.) ''; in - '' + /* lua */ '' legacy_ssl_ports = { 5223 } legacy_ssl_ssl = { key = "/var/lib/acme/${domain}/key.pem", @@ -205,7 +204,7 @@ in }; } - -- -- File-transfer proxies are an outdated technology + -- File-transfer proxies are an outdated technology -- Component "proxy65.${domain}" "proxy65" -- proxy65_address = "proxy.${domain}" -- proxy65_acl = { "${domain}" }