jabber: format

This commit is contained in:
Sandro - 2023-10-11 19:16:25 +02:00
parent 7c43698992
commit f9661bac0e
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 6 additions and 7 deletions

View File

@ -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}" }