mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds prosody
This commit is contained in:
parent
51ac6aed59
commit
8e9a4c6778
1 changed files with 41 additions and 0 deletions
41
modules/services/prosody.nix
Normal file
41
modules/services/prosody.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
services.prosody = {
|
||||||
|
enable = true;
|
||||||
|
# user = "prosody";
|
||||||
|
user = config.services.nginx.user;
|
||||||
|
modules = {
|
||||||
|
welcome = true;
|
||||||
|
websocket = true;
|
||||||
|
watchregistrations = true;
|
||||||
|
};
|
||||||
|
httpFileShare.domain = "uploads.liv.town";
|
||||||
|
admins = [ "liv@liv.town" ];
|
||||||
|
allowRegistration = false;
|
||||||
|
ssl.cert = "/var/lib/acme/liv.town/cert.pem";
|
||||||
|
ssl.key = "/var/lib/acme/liv.town/key.pem";
|
||||||
|
virtualHosts."liv.town" = {
|
||||||
|
enabled = true;
|
||||||
|
domain = "liv.town";
|
||||||
|
ssl.cert = "/var/lib/acme/liv.town/fullchain.pem";
|
||||||
|
ssl.key = "/var/lib/acme/liv.town/key.pem";
|
||||||
|
};
|
||||||
|
muc = [
|
||||||
|
{
|
||||||
|
domain = "conference.liv.town";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
# File transfer proxy
|
||||||
|
5000
|
||||||
|
# Client connections
|
||||||
|
5222
|
||||||
|
# Client connections (direct TLS)
|
||||||
|
5223
|
||||||
|
# Server-to-server connections
|
||||||
|
5269
|
||||||
|
# Server-to-server connections (direct TLS)
|
||||||
|
5270
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue