jabber: format
This commit is contained in:
parent
7c43698992
commit
f9661bac0e
|
@ -71,9 +71,7 @@ in
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [
|
ensureDatabases = [ "prosody" ];
|
||||||
"prosody"
|
|
||||||
];
|
|
||||||
ensureUsers = [{
|
ensureUsers = [{
|
||||||
name = "prosody";
|
name = "prosody";
|
||||||
ensurePermissions = {
|
ensurePermissions = {
|
||||||
|
@ -83,13 +81,14 @@ in
|
||||||
package = pkgs.postgresql_16;
|
package = pkgs.postgresql_16;
|
||||||
upgrade.stopServices = [ "prosody" ];
|
upgrade.stopServices = [ "prosody" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
#TODO: txt records?
|
#TODO: txt records?
|
||||||
prosody = {
|
prosody = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowRegistration = false;
|
allowRegistration = false;
|
||||||
admins = [ "astro@spaceboyz.net" "0@jabber.c3d2.de" "nek0@c3d2.de" ];
|
admins = [ "astro@spaceboyz.net" "0@jabber.c3d2.de" "nek0@c3d2.de" ];
|
||||||
package = pkgs.prosody.override {
|
package = pkgs.prosody.override {
|
||||||
withCommunityModules = [ "smacks" "csi" "cloud_notify" "extdisco" "firewall" ];
|
withCommunityModules = [ "cloud_notify" "csi" "extdisco" "firewall" "smacks" ];
|
||||||
withExtraLuaPackages = luaPackages: with luaPackages; [
|
withExtraLuaPackages = luaPackages: with luaPackages; [
|
||||||
luadbi-postgresql
|
luadbi-postgresql
|
||||||
];
|
];
|
||||||
|
@ -98,8 +97,8 @@ in
|
||||||
modules = {
|
modules = {
|
||||||
# HTTP stuff
|
# HTTP stuff
|
||||||
bosh = true;
|
bosh = true;
|
||||||
websocket = true;
|
|
||||||
http_files = true;
|
http_files = true;
|
||||||
|
websocket = true;
|
||||||
|
|
||||||
admin_telnet = true;
|
admin_telnet = true;
|
||||||
announce = true;
|
announce = true;
|
||||||
|
@ -166,7 +165,7 @@ in
|
||||||
BOUNCE=policy-violation (Your domain has been blacklisted due to spam.)
|
BOUNCE=policy-violation (Your domain has been blacklisted due to spam.)
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
''
|
/* lua */ ''
|
||||||
legacy_ssl_ports = { 5223 }
|
legacy_ssl_ports = { 5223 }
|
||||||
legacy_ssl_ssl = {
|
legacy_ssl_ssl = {
|
||||||
key = "/var/lib/acme/${domain}/key.pem",
|
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"
|
-- Component "proxy65.${domain}" "proxy65"
|
||||||
-- proxy65_address = "proxy.${domain}"
|
-- proxy65_address = "proxy.${domain}"
|
||||||
-- proxy65_acl = { "${domain}" }
|
-- proxy65_acl = { "${domain}" }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user