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; } } }