Skip to content

Commit 8c03af4

Browse files
authored
Merge pull request #2 from mrv96/waitress-call
Add WAITRESS_CALL to Waitress Options
2 parents 714f327 + 33f14cb commit 8c03af4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ in the environment. The supported options are:
135135
| WAITRESS_NO_EXPOSE_TRACEBACKS | --no-expose-tracebacks |
136136
| WAITRESS_NO_IPV6 | --no-ipv6 |
137137
| WAITRESS_NO_IPV4 | --no-ipv4 |
138+
| WAITRESS_CALL | --call |
138139
| WAITRESS_THREADS | --threads=`$VAL` |
139140
| WAITRESS_IDENT | --ident=`$VAL` |
140141
| WAITRESS_OUTBUF_OVERFLOW | --outbuf_high_watermark=`$VAL` |

scripts/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ if [[ -z $params ]]; then
4545
params="--listen=*:80"
4646
fi
4747

48+
if [[ -v $WAITRESS_CALL ]]; then
49+
params=" $params --call"
50+
fi
4851
if [[ -v $WAITRESS_NO_IPV6 ]]; then
4952
params=" $params --no-ipv6"
5053
fi
@@ -90,4 +93,4 @@ fi
9093

9194
# Start Waitress
9295
echo "waitress-serve $params $APP_MODULE"
93-
exec waitress-serve $params $APP_MODULE
96+
exec waitress-serve $params $APP_MODULE

0 commit comments

Comments
 (0)