|
|
@@ -24,14 +24,14 @@ server {
|
|
|
add_header Cache-Control "public, immutable";
|
|
|
}
|
|
|
|
|
|
- # 后端 API 代理(目前未接入,先预留)
|
|
|
- location /prod-api/ {
|
|
|
- proxy_pass http://backend:8080/;
|
|
|
- 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;
|
|
|
- }
|
|
|
+ # 后端 API 代理(接入后端时取消注释,把 backend 换成实际地址)
|
|
|
+ # location /prod-api/ {
|
|
|
+ # proxy_pass http://backend:8080/;
|
|
|
+ # 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;
|
|
|
+ # }
|
|
|
|
|
|
# Vue Router history 模式 — 所有未匹配路径回退到 index.html
|
|
|
location / {
|