add owncast (I'm literally xqc)

This commit is contained in:
jacekpoz 2024-02-05 22:21:38 +01:00
parent 7249a7dd50
commit f4d5e3fa47
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 21 additions and 0 deletions

View file

@ -14,6 +14,7 @@ _: {
./i2pd.nix
./jacekpoz.pl.nix
./ntfy-sh.nix
./owncast.nix
#./stalwart.nix
./trollface.pl
#./qbittorrent.nix

20
hosts/chmura/owncast.nix Normal file
View file

@ -0,0 +1,20 @@
{
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 ];
}