fix(docker): unrestrict --forwarded-allow-ips on (uvi|hyper)corn

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-15 21:04:47 -08:00
parent b092e247fc
commit 42aa12d075
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -18,6 +18,7 @@ if [ "$1" == "uvicorn" ] || [ "$1" == "" ]; then
--log-config /docker/logging.conf \
--host "0.0.0.0" \
--port 8000 \
--forwarded-allow-ips "*" \
aurweb.asgi:app
elif [ "$1" == "gunicorn" ]; then
exec gunicorn \
@ -32,6 +33,7 @@ elif [ "$1" == "hypercorn" ]; then
exec hypercorn --reload \
--log-config /docker/logging.conf \
-b "0.0.0.0:8000" \
--forwarded-allow-ips "*" \
aurweb.asgi:app
else
echo "Error: Invalid \$FASTAPI_BACKEND supplied."