add support for rebroadcasting as rtmp

This commit is contained in:
Blake Blackshear
2020-11-28 07:58:27 -06:00
parent 32a66fe5e8
commit 4502ca8e80
3 changed files with 53 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
load_module "modules/ngx_rtmp_module.so";
events {
worker_connections 1024;
}
@@ -81,4 +83,19 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}
rtmp {
server {
listen 1935;
chunk_size 4096;
allow publish 127.0.0.1;
deny publish all;
allow play all;
application live {
live on;
record off;
meta copy;
}
}
}