fix(docker): use gunicorn's --proxy-protocol

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-13 23:47:16 -08:00
parent 88cb1096c0
commit c5100b29f7
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -22,6 +22,7 @@ if [ "$1" == "uvicorn" ] || [ "$1" == "" ]; then
elif [ "$1" == "gunicorn" ]; then
exec gunicorn \
--log-config /docker/logging.conf \
--proxy-protocol \
--bind "0.0.0.0:8000" \
-w $FASTAPI_WORKERS \
-k uvicorn.workers.UvicornWorker \