niksos/hosts/chmura/services/owncast.nix

21 lines
457 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
'';
};
2024-07-16 08:07:53 +02:00
networking.firewall.allowedTCPPorts = [ 80 443 ]
2024-02-05 22:21:38 +01:00
++ [ config.services.owncast.rtmp-port ];
}