mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): unrestrict --forwarded-allow-ips on (uvi|hyper)corn
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
b092e247fc
commit
42aa12d075
1 changed files with 2 additions and 0 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue