From 3c7d0fa54e9e0b7d3f934a8ca383bae492bff188 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 24 Nov 2022 13:03:16 +0000 Subject: [PATCH] clouvider-lon01: add live1 relay --- ops/nixos/clouvider-lon01/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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;