enable x-forwarded-for trusted header
This commit is contained in:
parent
392c23afe1
commit
d5759cdd31
1 changed files with 4 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue