From d0deb9e786786e7b703b5361957beb74ee6654c0 Mon Sep 17 00:00:00 2001 From: pengren Date: Fri, 26 Apr 2024 10:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=8F=B7=EF=BC=9AZSSAC-585=20?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=EF=BC=9A=E4=BF=AE=E6=94=B9nginx=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf-ui/nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sf-ui/nginx.conf b/sf-ui/nginx.conf index 15fb1ee..4a275ce 100644 --- a/sf-ui/nginx.conf +++ b/sf-ui/nginx.conf @@ -36,12 +36,13 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://zt-sac-java:7781/; } + location /stage-file/ { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://file.sac.zsmarter.com/; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header REMOTE-HOST $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://file.sac.zsmarter.com/; } error_page 500 502 503 504 /50x.html;