zjcqoo 6 年之前
父節點
當前提交
8f0c6f619f
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 3 3
      lua/http-enc-res-hdr.lua
  2. 4 4
      nginx.conf

+ 3 - 3
lua/http-enc-res-hdr.lua

@@ -111,9 +111,9 @@ local function nodeSwitched()
 end
 
 -- 节点切换功能,目前还在测试中(demo 中已开启)
-if nodeSwitched() then
-  return
-end
+-- if nodeSwitched() then
+--   return
+-- end
 
 
 local h, err = ngx.resp.get_headers()

+ 4 - 4
nginx.conf

@@ -1,9 +1,9 @@
 http {
   server {
-    server_name           *.etherdream.com;
-    ssl_certificate       cert/etherdream.com/ecc.cer;
-    ssl_certificate_key   cert/etherdream.com/ecc.key;
-    listen                8443 ssl http2;
+    # server_name           example.com;
+    # ssl_certificate       cert/example.com/ecc.cer;
+    # ssl_certificate_key   cert/example.com/ecc.key;
+    # listen                8443 ssl http2;
     listen                8080;
     include               api.conf;
   }