From d5759cdd311bd101d8a02baac1611832ae253184 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 6 Feb 2025 20:19:34 +0200 Subject: [PATCH] enable x-forwarded-for trusted header --- src/api/scripts/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/scripts/run.sh b/src/api/scripts/run.sh index a3e5899..ba98c62 100644 --- a/src/api/scripts/run.sh +++ b/src/api/scripts/run.sh @@ -12,8 +12,8 @@ fi # Start Waitress 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 -waitress-serve --port=8080 --threads=16 --call $APP_MODULE \ No newline at end of file +waitress-serve --port=8080 --threads=16 \ +--trusted-proxy='*' --log-untrusted-proxy-headers \ +--trusted-proxy-headers='x-forwarded-for' +--call $APP_MODULE \ No newline at end of file