-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
50 lines (41 loc) · 894 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
40
41
42
43
44
45
46
47
48
49
50
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
application live {
live on;
interleave on;
hls on;
hls_path /tmp/hls;
hls_fragment 1s;
hls_playlist_length 4s;
dash on;
dash_path /tmp/dash;
dash_fragment 1s;
}
}
}
http {
server {
default_type application/octet-stream;
listen 80;
location / {
root /tmp;
location /hls {
try_files $uri $uri.m3u8 =404;
}
location /dash {
try_files $uri $uri.mpd =404;
}
}
}
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
text/html html;
application/dash+xml mpd;
}
}