|
@@ -1,14 +1,19 @@
|
|
|
-# wraps around the static image to deliver HLS video streaming
|
|
|
|
|
|
http {
|
|
|
- upstream ispooge_static {
|
|
|
- #server ispooge-static:9090;
|
|
|
- server 192.168.1.6:3000;
|
|
|
- }
|
|
|
+# include mime.types;
|
|
|
+
|
|
|
+ default_type application/octet-stream;
|
|
|
|
|
|
types {
|
|
|
+ text/plain txt;
|
|
|
+ text/html html;
|
|
|
+ text/css css;
|
|
|
+ application/javascript js;
|
|
|
+
|
|
|
application/vnd.apple.mpegurl m3u8;
|
|
|
video/mp2t ts;
|
|
|
+
|
|
|
+ application/rss+xml xml;
|
|
|
}
|
|
|
|
|
|
server {
|
|
@@ -46,7 +51,7 @@ http {
|
|
|
add_header 'Content-Length' 0;
|
|
|
return 204;
|
|
|
}
|
|
|
- root /tmp/hls/ispooge.com/;
|
|
|
+ root /tmp/http/hls/ispooge.com/;
|
|
|
}
|
|
|
|
|
|
# This URL provides RTMP statistics in XML
|
|
@@ -58,9 +63,16 @@ http {
|
|
|
rtmp_stat_stylesheet stat.xsl;
|
|
|
}
|
|
|
|
|
|
+ location /media/ {
|
|
|
+ rewrite ^/media/(.*) /$1 break;
|
|
|
+
|
|
|
+ root /tmp/http/media/;
|
|
|
+ }
|
|
|
+
|
|
|
location / {
|
|
|
|
|
|
|
|
|
+
|
|
|
if ($cors = 'C') {
|
|
|
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
|
|
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
|
@@ -76,7 +88,7 @@ http {
|
|
|
return 204;
|
|
|
}
|
|
|
|
|
|
- proxy_pass http://ispooge_static/;
|
|
|
+ root /tmp/http/cryogen/;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -111,7 +123,7 @@ rtmp {
|
|
|
live on;
|
|
|
|
|
|
hls on;
|
|
|
- hls_path /tmp/hls/ispooge.com;
|
|
|
+ hls_path /tmp/http/hls/ispooge.com;
|
|
|
#hls_base_url http://192.168.1.8:33080/hls/;
|
|
|
hls_fragment 500ms;
|
|
|
hls_playlist_length 3s;
|