summaryrefslogtreecommitdiff
path: root/roles/streaming/rtmp/streamer/templates/nginx.conf.j2
blob: 61cdfd9288301a489db6bdadd48015307de5baca (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
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;

        application {{ rtmp_streamer_app_name }} {
            live on;
            meta copy;

            allow publish 127.0.0.1;
            deny publish all;
        }
    }
}