diff --git a/ops/nixos/clouvider-lon01/default.nix b/ops/nixos/clouvider-lon01/default.nix index f0a8be293d..34e672085e 100644 --- a/ops/nixos/clouvider-lon01/default.nix +++ b/ops/nixos/clouvider-lon01/default.nix @@ -114,6 +114,7 @@ allowPing = true; allowedTCPPorts = [ 80 443 # HTTP/nginx + 1935 # RTMP/nginx 6697 # znc 34197 # factorio ]; @@ -197,6 +198,23 @@ }; services.nginx = { enable = true; + package = pkgs.nginxMainline; + additionalModules = with pkgs.nginxModules; [ rtmp ]; + appendConfig = '' + rtmp_auto_push on; + rtmp { + server { + listen 1935; + chunk_size 4096; + application live1 { + allow publish 213.41.69.70; + allow publish 37.26.186.120; + allow publish 94.229.74.42; + live on; record off; + } + } + } + ''; virtualHosts = { "clouvider-lon01.as205479.net" = { default = true;