From ee718f309a343f87e8b56e82e30b40a1690d1504 Mon Sep 17 00:00:00 2001 From: kat witch Date: Tue, 27 Apr 2021 19:45:06 +0100 Subject: [PATCH] hosts/samhain: RTMP setup --- hosts/samhain/nixos/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/hosts/samhain/nixos/default.nix b/hosts/samhain/nixos/default.nix index 28a9c7b5..738a7f56 100644 --- a/hosts/samhain/nixos/default.nix +++ b/hosts/samhain/nixos/default.nix @@ -93,8 +93,21 @@ in { networking.interfaces.enp34s0.useDHCP = true; networking.firewall.allowPing = true; + services.nginx.appendConfig = '' + rtmp { + server { + listen [::]:1935 ipv6only=off; + application kattv { + live on; + + allow publish all; + allow play all; + } + } + } + ''; + networking.firewall.interfaces.enp34s0.allowedTCPPorts = [ - 1935 # rtmp 80 # http 443 # https ]; @@ -106,6 +119,7 @@ in { 443 # https 111 # nfs 2049 # nfs + 1935 # rtmp ]; networking.firewall.interfaces.enp34s0.allowedUDPPorts = [