feat: animu night no longer discord requiring

This commit is contained in:
Kat Inskip 2025-11-14 10:13:57 -08:00
parent 7e70c182e5
commit ca97476a47
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
10 changed files with 91 additions and 23 deletions

View file

@ -33,6 +33,49 @@ _: let
pkgs.numix-icon-theme
];
networking.firewall.allowedTCPPorts = [
1935
];
systemd.services.nginx.serviceConfig.BindPaths = [
"/var/www/streamy"
];
services.nginx = let
streamyHome = "/var/www/streamy";
in {
virtualHosts."stream.kittywit.ch" = {
enableACME = true;
forceSSL = true;
acmeRoot = null;
locations = {
"/" = {
root = streamyHome;
};
};
};
appendConfig = ''
rtmp {
server {
listen 1935;
chunk_size 4096;
application animu {
allow publish 100.64.0.0/10;
deny publish all;
live on;
record off;
hls on;
hls_path ${streamyHome}/hls;
hls_fragment 3;
hls_playlist_length 60;
dash on;
dash_path ${streamyHome}/dash;
}
}
}
'';
};
# TODO: Add config.microvm.stateDir to backup schedule?
# TODO: figure out updateFlake?
#microvm = {