diff --git a/README.md b/README.md index c9998cc..eb82493 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/scripts/run.sh b/scripts/run.sh index 37b8fd0..b22d5eb 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -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 @@ -90,4 +93,4 @@ fi # Start Waitress echo "waitress-serve $params $APP_MODULE" -exec waitress-serve $params $APP_MODULE \ No newline at end of file +exec waitress-serve $params $APP_MODULE