regret not doing this more granularly but oh well

This commit is contained in:
Schrottkatze 2023-05-21 12:52:04 +02:00
parent 8bb51cb919
commit 2f166efc51
7 changed files with 128 additions and 18 deletions

24
modules/prosody.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
services.prosody = {
enable = true;
admins = [ "root@prosody.katzen.cafe" ];
virtualHosts."prosody.katzen.cafe" = {
domain = "prosody.katzen.cafe";
enabled = true;
};
ssl = {
key = "/var/lib/acme/prosody.katzen.cafe/key.pem";
cert = "/var/lib/acme/prosody.katzen.cafe/fullchain.pem";
};
uploadHttp = {
domain = "uploads.prosody.katzen.cafe";
};
muc = [ {
domain = "conference.prosody.katzen.cafe";
} ];
};
networking.firewall = {
allowedTCPPorts = [ 5280 5281 ];
};
}