DESKTOP-3E973C2\Admin 4 vuotta sitten
vanhempi
commit
908d7be814
1 muutettua tiedostoa jossa 2 lisäystä ja 8 poistoa
  1. 2 8
      k8swebapi-nginx/conf.d/k8swebapi-nginx.conf

+ 2 - 8
k8swebapi-nginx/conf.d/k8swebapi-nginx.conf

@@ -146,18 +146,12 @@ server {
     if ($request_method = 'OPTIONS') {
         return 204;
     }
-    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_set_header X-CROS true;  # 自定义,有做跨域的时候需要加,后端会做判断
-    proxy_redirect off;
-    proxy_http_version 1.1;
+
 
 
     location / {
         root /usr/share/nginx/html/businessweb-user;
         try_files $uri $uri/ /index.html;
-        index index.html;
+        #index index.html;
     }
 }