niksos/hosts/chmura/services/owncast.nix
2024-07-16 08:07:53 +02:00

20 lines
457 B
Nix

{
config,
...
}: {
services.owncast = {
enable = true;
port = 9842;
};
services.caddy = {
enable = true;
virtualHosts."live.jacekpoz.pl".extraConfig = ''
encode gzip
reverse_proxy ${config.services.owncast.listen}:${toString config.services.owncast.port}
'';
};
networking.firewall.allowedTCPPorts = [ 80 443 ]
++ [ config.services.owncast.rtmp-port ];
}