瀏覽代碼

更新 'share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf'

chenghongxi 4 年之前
父節點
當前提交
9ad953dde0
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf

+ 1 - 7
share-v2/sharesrv2-nginx/conf.d/sharesrv2-nginx.conf

@@ -5,13 +5,7 @@ server
     add_header Access-Control-Allow-Headers X-Requested-With;
     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
 
-    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-    proxy_set_header Remote_addr $remote_addr;
-    proxy_set_header X-Real_IP $remote_addr;
-    proxy_set_header Host $host;
-    proxy_redirect off;
-    proxy_http_version 1.1;
-    charset utf-8;
+    
     server_name api-debug.xinyueyouxi.com;
     location / {
         proxy_pass http://sharesrv2-svc:9092;