summaryrefslogtreecommitdiff
path: root/roles/streaming/streamer/rtmp/templates/nginx.conf.j2
blob: 37e7aa84f5b4f1b0f4eae8fcfbc26333fb5c68a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
        }
    }
}