Browse Source

use s3 for media storage

Harlan 6 years ago
parent
commit
03ed4f7684
3 changed files with 8 additions and 3 deletions
  1. 3 0
      Dockerfile.streaming
  2. 3 2
      nginx-conf/nginx.conf
  3. 2 1
      scripts/env.sh

+ 3 - 0
Dockerfile.streaming

@@ -15,3 +15,6 @@ RUN mkdir -p /tmp/http/media
 VOLUME /tmp/http/media
 
 USER root
+
+#WORKDIR /tmp/http
+#ADD app/resources/public /tmp/http

+ 3 - 2
nginx-conf/nginx.conf

@@ -12,8 +12,8 @@ http {
 
         application/vnd.apple.mpegurl m3u8;
         video/mp2t ts;
-
-        application/rss+xml xml;
+    
+        application/rss+xml xml;    
     }
 
     server {
@@ -71,6 +71,7 @@ http {
 
         location / {
 
+        
 
 
           if ($cors = 'C') {

+ 2 - 1
scripts/env.sh

@@ -2,7 +2,8 @@
 
 # use with source
 
-ISPOOGE_MEDIA_PATH="$HOME/ispooge-media"
+#ISPOOGE_MEDIA_PATH="$HOME/ispooge-media"
+ISPOOGE_MEDIA_PATH="$HOME/mnt/ispooge-media-aws/ispooge-media"
 
 IMAGE=ispooge-build
 # todo: IMAGE_DEV like STATIC