feat(frontend): allow configurable backend host and port

This commit is contained in:
Dounx
2026-02-06 19:44:05 +08:00
committed by lyingbug
parent 602086d884
commit 66756de19f
5 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ server {
# API请求代理到后端服务
location /api/ {
proxy_pass http://app:8080/api/;
proxy_pass http://${APP_HOST}:${APP_PORT}/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;