This commit is contained in:
2025-11-01 19:46:50 +08:00
parent 31fcedec7b
commit 7ca0fd8de8

View File

@@ -81,6 +81,21 @@ http {
proxy_connect_timeout 75s; proxy_connect_timeout 75s;
} }
# 兼容开发环境的/apis路径
location /apis/ {
proxy_pass http://digital-archive-app:9081/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 300s;
proxy_connect_timeout 75s;
}
# Vue路由支持 # Vue路由支持
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;