fix: 前端自动化部署优化
This commit is contained in:
1 parent
6bcd8f4d09
commit
246d49a038
5 files changed
+26
-5
No files matched your search
+2
-3
@@ -39,10 +39,9 @@ server {
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# API proxy to backend (container network)
|
||||
# API proxy to backend (configurable via $API_UPSTREAM)
|
||||
location /api/ {
|
||||
# Keep original request path; backend service name resolves inside Docker network
|
||||
proxy_pass http://backend:18888;
|
||||
proxy_pass $API_UPSTREAM;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in new issue
Block a user