forked from poz/niksos
21 lines
398 B
Nix
21 lines
398 B
Nix
|
{
|
||
|
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 ];
|
||
|
}
|