niksos/hosts/chmura/owncast.nix

21 lines
398 B
Nix
Raw Normal View History

2024-02-05 22:21:38 +01:00
{
config,
...
}: {
services.owncast = {
enable = true;
port = 9842;
};
services.caddy = {
enable = true;
virtualHosts."live.jacekpoz.pl".extraConfig = ''
encode gzip
reverse_proxy 127.0.0.1:9842
'';
};
networking.firewall.allowedTCPPorts = [ 80 443 ]
++ [ config.services.owncast.rtmp-port ];
}