From 3e248c4e4faf812a8ab56aeb41029395a87360ec Mon Sep 17 00:00:00 2001 From: mrv96 Date: Mon, 15 May 2023 12:36:45 +0200 Subject: [PATCH] Add WAITRESS_EXTRA_PARAMS to Waitress Options --- README.md | 2 ++ scripts/run.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb82493..511c68d 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,8 @@ Translates to command waitress-serve --listen=*:80 --no-ipv6 app.wsgi:application ``` +Additional extra parameters can passed setting `WAITRESS_EXTRA_PARAMS` environment variable. + # Credits This dockerfile setup is based on https://github.com/tiangolo/meinheld-gunicorn-docker diff --git a/scripts/run.sh b/scripts/run.sh index b22d5eb..bda42f7 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -12,7 +12,7 @@ else echo "There is no script $PRE_START_PATH" fi -params="" +params="$WAITRESS_EXTRA_PARAMS" if [[ -v $WAITRESS_LISTEN ]]; then listeners=$(echo "$WAITRESS_LISTEN" | tr "," "\n")