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 {