blenders commited on
Commit
4c272c9
·
1 Parent(s): 005d41d
Files changed (1) hide show
  1. nginx.conf +8 -4
nginx.conf CHANGED
@@ -12,12 +12,13 @@ rtmp {
12
 
13
  application live {
14
  live on;
 
 
15
  }
16
 
17
  application hls {
18
  live on;
19
  hls on;
20
- hls_nested on;
21
  hls_path /tmp/nginx/html/media/hls;
22
  hls_fragment 3;
23
  hls_playlist_length 9;
@@ -31,7 +32,6 @@ rtmp {
31
  application rhls {
32
  live on;
33
  hls on;
34
- #hls_nested on;
35
  hls_path /tmp/nginx/html/media/rhls;
36
  hls_fragment 3;
37
  hls_playlist_length 9;
@@ -73,7 +73,9 @@ http {
73
 
74
  location /hls {
75
  root /tmp/nginx/html/media;
76
- types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; }
 
 
77
  add_header Cache-Control no-cache;
78
  add_header Access-Control-Allow-Origin *;
79
  autoindex on;
@@ -81,7 +83,9 @@ http {
81
 
82
  location /rhls {
83
  root /tmp/nginx/html/media;
84
- types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; }
 
 
85
  add_header Cache-Control no-cache;
86
  add_header Access-Control-Allow-Origin *;
87
  autoindex on;
 
12
 
13
  application live {
14
  live on;
15
+ allow publish all;
16
+ allow play all;
17
  }
18
 
19
  application hls {
20
  live on;
21
  hls on;
 
22
  hls_path /tmp/nginx/html/media/hls;
23
  hls_fragment 3;
24
  hls_playlist_length 9;
 
32
  application rhls {
33
  live on;
34
  hls on;
 
35
  hls_path /tmp/nginx/html/media/rhls;
36
  hls_fragment 3;
37
  hls_playlist_length 9;
 
73
 
74
  location /hls {
75
  root /tmp/nginx/html/media;
76
+ types { application/vnd.apple.mpegurl m3u8;
77
+ video/mp2t ts;
78
+ }
79
  add_header Cache-Control no-cache;
80
  add_header Access-Control-Allow-Origin *;
81
  autoindex on;
 
83
 
84
  location /rhls {
85
  root /tmp/nginx/html/media;
86
+ types { application/vnd.apple.mpegurl m3u8;
87
+ video/mp2t ts;
88
+ }
89
  add_header Cache-Control no-cache;
90
  add_header Access-Control-Allow-Origin *;
91
  autoindex on;