enable x-forwarded-for trusted header

This commit is contained in:
deflax 2025-02-06 20:19:34 +02:00
parent 392c23afe1
commit d5759cdd31

View file

@ -12,8 +12,8 @@ fi
# Start Waitress # Start Waitress
echo "waitress-serve $APP_MODULE" 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
pwd pwd
waitress-serve --port=8080 --threads=16 --call $APP_MODULE waitress-serve --port=8080 --threads=16 \
--trusted-proxy='*' --log-untrusted-proxy-headers \
--trusted-proxy-headers='x-forwarded-for'
--call $APP_MODULE