From e889f9adb7f75a6a75b5088d3895fc238ec2bc29 Mon Sep 17 00:00:00 2001 From: pengren Date: Fri, 26 Apr 2024 09:22:31 +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=B9=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf-admin/src/main/resources/application.yml | 2 +- sf-ui/nginx.conf | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sf-admin/src/main/resources/application.yml b/sf-admin/src/main/resources/application.yml index 4a496a5..f1262f9 100644 --- a/sf-admin/src/main/resources/application.yml +++ b/sf-admin/src/main/resources/application.yml @@ -133,7 +133,7 @@ file: ceph: #endpoint: http://127.0.0.1:9000 upload: http://192.168.1.23:9000 - endpoint: http://file.sac.zsmarter.com + endpoint: http://118.114.160.245/stage-file # 50M defaultMaxSize: 52428800 access: diff --git a/sf-ui/nginx.conf b/sf-ui/nginx.conf index 63ce459..15fb1ee 100644 --- a/sf-ui/nginx.conf +++ b/sf-ui/nginx.conf @@ -36,6 +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/; + } error_page 500 502 503 504 /50x.html; location = /50x.html {