Skip to content

Commit

Permalink
Merge pull request #2 from mrv96/waitress-call
Browse files Browse the repository at this point in the history
Add WAITRESS_CALL to Waitress Options
  • Loading branch information
Tecktron authored May 27, 2023
2 parents 714f327 + 33f14cb commit 8c03af4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ in the environment. The supported options are:
| WAITRESS_NO_EXPOSE_TRACEBACKS | --no-expose-tracebacks |
| WAITRESS_NO_IPV6 | --no-ipv6 |
| WAITRESS_NO_IPV4 | --no-ipv4 |
| WAITRESS_CALL | --call |
| WAITRESS_THREADS | --threads=`$VAL` |
| WAITRESS_IDENT | --ident=`$VAL` |
| WAITRESS_OUTBUF_OVERFLOW | --outbuf_high_watermark=`$VAL` |
Expand Down
5 changes: 4 additions & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if [[ -z $params ]]; then
params="--listen=*:80"
fi

if [[ -v $WAITRESS_CALL ]]; then
params=" $params --call"
fi
if [[ -v $WAITRESS_NO_IPV6 ]]; then
params=" $params --no-ipv6"
fi
Expand Down Expand Up @@ -90,4 +93,4 @@ fi

# Start Waitress
echo "waitress-serve $params $APP_MODULE"
exec waitress-serve $params $APP_MODULE
exec waitress-serve $params $APP_MODULE

0 comments on commit 8c03af4

Please sign in to comment.