clouvider-lon01: add live1 relay
This commit is contained in:
parent
39d09bbf50
commit
3c7d0fa54e
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue