-
Notifications
You must be signed in to change notification settings - Fork 4
/
nginx.conf
39 lines (33 loc) · 1.04 KB
/
nginx.conf
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
33
34
35
36
37
38
39
##################################################################
# File Name : nginx.conf
# Description : nginx main config
# Args : none
# Author : dudoleitor
# Email : dudoleitor@dudoleitor.com
# GitHub : github.com/dudoleitor/docker-nginx-rtmps
###################################################################
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
max_streams 512;
application live {
live on;
record off;
# Port 19350 and 19351 are for internal use only
# nginx pushes the stream through stunnel
# YouTube settings
push rtmp://127.0.0.1:19350/live2/YouTube_key_here;
# Facebook settings
push rtmp://127.0.0.1:19351/rtmp/Facebook_key_here;
}
}
}