From 42aa12d07599c80c34f7e25ed3737488dc59a9f8 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Sat, 15 Jan 2022 21:04:47 -0800 Subject: [PATCH] fix(docker): unrestrict --forwarded-allow-ips on (uvi|hyper)corn Signed-off-by: Kevin Morris --- docker/scripts/run-fastapi.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/scripts/run-fastapi.sh b/docker/scripts/run-fastapi.sh index ed1e07ec..fe037542 100755 --- a/docker/scripts/run-fastapi.sh +++ b/docker/scripts/run-fastapi.sh @@ -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."