Use the old waitress command

This commit is contained in:
Daniel Krastev 2025-02-06 19:34:40 +02:00
parent aff74f3f76
commit 9b923e277e
2 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@
set -e
if [ -f /app/api.py ]; then
DEFAULT_MODULE_NAME=api
DEFAULT_MODULE_NAME=app.api
fi
MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
VARIABLE_NAME=${VARIABLE_NAME:-create_app}

View file

@ -11,7 +11,9 @@ else
fi
# Start Waitress
#echo "waitress-serve $APP_MODULE"
exec waitress-serve --listen=*:8080 --trusted-proxy='*' \
echo "waitress-serve $APP_MODULE"
# exec waitress-serve --listen=*:8080 --trusted-proxy='*' \
# --trusted-proxy-headers="x-forwarded-for","x-forwarded-host","x-forwarded-proto","x-forwarded-port" \
--log-untrusted-proxy-headers --threads=16 --call app.api:create_app
# --log-untrusted-proxy-headers --threads=16 --call app.api:create_app
waitress-serve --port=8080" --threads=16 --call $APP_MODULE"