diff options
Diffstat (limited to 'roles/streaming/streamer/rtmp/templates/nginx.conf.j2')
-rw-r--r-- | roles/streaming/streamer/rtmp/templates/nginx.conf.j2 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/streaming/streamer/rtmp/templates/nginx.conf.j2 b/roles/streaming/streamer/rtmp/templates/nginx.conf.j2 new file mode 100644 index 00000000..37e7aa84 --- /dev/null +++ b/roles/streaming/streamer/rtmp/templates/nginx.conf.j2 @@ -0,0 +1,32 @@ +worker_processes 1; +pid /var/lib/nginx/nginx.pid; +error_log /dev/stderr info; + +include /etc/nginx/modules-enabled/*.conf; + +events { + worker_connections 768; + # multi_accept on; +} + +rtmp { + access_log /dev/null; + + server { + listen 1935; + + ping 10s; + ping_timeout 3s; + drop_idle_publisher 10s; + idle_streams off; + max_message 4M; + + application {{ streamer_rtmp_app_name }} { + live on; + meta copy; + + allow publish 127.0.0.1; + deny publish all; + } + } +} |