clouvider-lon01: add live1 relay

This commit is contained in:
Luke Granger-Brown 2022-11-24 13:03:16 +00:00
parent 39d09bbf50
commit 3c7d0fa54e

View file

@ -114,6 +114,7 @@
allowPing = true; allowPing = true;
allowedTCPPorts = [ allowedTCPPorts = [
80 443 # HTTP/nginx 80 443 # HTTP/nginx
1935 # RTMP/nginx
6697 # znc 6697 # znc
34197 # factorio 34197 # factorio
]; ];
@ -197,6 +198,23 @@
}; };
services.nginx = { services.nginx = {
enable = true; 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 = { virtualHosts = {
"clouvider-lon01.as205479.net" = { "clouvider-lon01.as205479.net" = {
default = true; default = true;