niksos/hosts/chmura/owncast.nix

21 lines
458 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
2024-03-06 19:05:39 +01:00
reverse_proxy ${config.services.owncast.listen}:${toString config.services.owncast.port}
2024-02-05 22:21:38 +01:00
'';
};
networking.firewall.allowedTCPPorts = [ 80 443 ]
++ [ config.services.owncast.rtmp-port ];
}