mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-09-20 03:40:29 +05:00
Merge branch 'prosody'
This commit is contained in:
commit
8635deb84d
|
@ -19,8 +19,13 @@
|
|||
587 # smtp submission
|
||||
143 # imap
|
||||
993 # imap
|
||||
5280 # prosody http
|
||||
5281 # prosody https
|
||||
|
||||
# Prosody
|
||||
5000 # File transfer proxy
|
||||
5222 # Client connections
|
||||
5269 # Server-to-server connections
|
||||
5281 # HTTPS
|
||||
|
||||
6881 # torrents
|
||||
16001 # yggdrasil tcp
|
||||
16002 # yggdrasil tls
|
||||
|
|
|
@ -3,9 +3,14 @@
|
|||
enable = true;
|
||||
|
||||
package = pkgs.prosody.override {
|
||||
withExtraLibs = [ pkgs.luajitPackages.luadbi ];
|
||||
withExtraLuaPackages = lua: [
|
||||
lua.luadbi-postgresql
|
||||
];
|
||||
};
|
||||
|
||||
httpPorts = [ 5280 ];
|
||||
httpsPorts = [ 5281 ];
|
||||
|
||||
virtualHosts."xmpp.comfycamp.space" = {
|
||||
enabled = true;
|
||||
domain = "xmpp.comfycamp.space";
|
||||
|
@ -32,11 +37,12 @@
|
|||
}
|
||||
];
|
||||
|
||||
allowRegistration = true;
|
||||
allowRegistration = false;
|
||||
admins = [
|
||||
"lumin@xmpp.comfycamp.space"
|
||||
];
|
||||
|
||||
extraModules = [ "mod_storage_sql" ];
|
||||
extraConfig = ''
|
||||
storage = "sql"
|
||||
sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "", host = "/run/postgresql" }
|
||||
|
|
Loading…
Reference in a new issue