feat: support remote backend and HTTPS proxy

This commit is contained in:
wizardchen
2026-02-09 17:27:21 +08:00
committed by lyingbug
parent d72f65bc23
commit bfab05972f
4 changed files with 23 additions and 5 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ EOF
export MAX_FILE_SIZE=${MAX_FILE_SIZE_MB}M
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
export APP_SCHEME=${APP_SCHEME:-http}
envsubst '${MAX_FILE_SIZE} ${APP_HOST} ${APP_PORT} ${APP_SCHEME}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf
# 启动 nginx
exec nginx -g 'daemon off;'