-
Notifications
You must be signed in to change notification settings - Fork 4
/
nginx.conf
39 lines (31 loc) · 855 Bytes
/
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
# Launch NGINX using: nginx -c nginx.conf -p $PWD
pid nginx.pid;
error_log stderr;
daemon off;
events {
}
rtmp {
access_log access.log;
server {
listen 1935;
chunk_size 4096;
notify_method get;
application live {
live on;
record off;
# You can put an authentification backend to check stream keys
#on_publish http://localhost/auth;
# Push stream to other services
#push rtmp://live-cdg.twitch.tv/app/<twitch_stream_key>;
}
}
}
# RTMPS (port 1936) to RTMP (port 1935)
#stream {
# server {
# listen 1936 ssl;
# proxy_pass 127.0.0.1:1935;
# ssl_certificate /etc/letsencrypt/live/rtmp.example.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/rtmp.example.com/privkey.pem;
# }
#}