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
+3 -1
View File
@@ -9,7 +9,9 @@ EOF
# 处理 nginx 配置
export MAX_FILE_SIZE=${MAX_FILE_SIZE_MB}M
envsubst '${MAX_FILE_SIZE}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf
export APP_HOST=${APP_HOST:-app}
export APP_PORT=${APP_PORT:-8080}
envsubst '${MAX_FILE_SIZE} ${APP_HOST} ${APP_PORT}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf
# 启动 nginx
exec nginx -g 'daemon off;'