From 7679400240aab54e819c6cd204cc51c53c8955db 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 c9998cc..b152aca 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,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 37b8fd0..b26af81 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")