diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-05-29 01:32:33 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-05-29 01:32:33 +0200 |
commit | 9714f9dfa1eea2264e8b6a02cd7e7d1a123e4730 (patch) | |
tree | 9424cd34097ca4576bbb4a11b93fa5c8ec71e602 /roles/streaming/streamer/rtmp/templates/nginx.conf.j2 | |
parent | rtmp/streamer: move to new encoding scripts (diff) |
rename role rtmp/streamer to streamer/rtmp
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; + } + } +} |