瀏覽代碼

allow any localhost port. don't syndicate to sample lines.

Harlan Iverson 7 年之前
父節點
當前提交
7ca08e4a89
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      nginx.conf

+ 5 - 5
nginx.conf

@@ -2,8 +2,8 @@
 
 http {
     upstream ispooge_static {
-         server ispooge-static:9090;
-#        server 192.168.1.6:3000;
+        #server ispooge-static:9090;
+        server 192.168.1.6:3000;
     }
 
     types {
@@ -17,7 +17,7 @@ http {
 
 
         set $cors '';
-        if ($http_origin ~ '^https?\:\/\/(localhost|\d+\.\d+\.\d+.\d+|(www\.)?ispooge\.com|(www\.)?harlanji\.com|(www\.)?tinydatacenter\.com)\/?') {
+        if ($http_origin ~ '^https?\:\/\/(localhost(\:[\d+])?|\d+\.\d+\.\d+.\d+|(www\.)?ispooge\.com|(www\.)?harlanji\.com|(www\.)?tinydatacenter\.com)\/?') {
                 set $cors 'C';
         }
 
@@ -153,10 +153,10 @@ rtmp {
             #meta copy;
 
             # YT LIVE
-            push rtmp://a.rtmp.youtube.com app=live2 playpath=YT_KEY live=1;
+            #push rtmp://a.rtmp.youtube.com app=live2 playpath=YT_KEY live=1;
 
             # Twitch
-            push rtmp://live-sjc.twitch.tv app=app playpath=TWITCH_KEY live=1;
+            #push rtmp://live-sjc.twitch.tv app=app playpath=TWITCH_KEY live=1;
         }
     }
 }