编号:ZSSAC-585 描述:修改图片转发

This commit is contained in:
pengren 2024-04-26 09:22:31 +08:00
parent 218153d77b
commit e889f9adb7
2 changed files with 8 additions and 1 deletions

View File

@ -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:

View File

@ -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 {