forked from open-webui/open-webui
feat: add HOST to the backend start script
This commit is contained in:
parent
f8f9f27ae8
commit
c19429848b
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ cd "$SCRIPT_DIR" || exit
|
||||||
KEY_FILE=.webui_secret_key
|
KEY_FILE=.webui_secret_key
|
||||||
|
|
||||||
PORT="${PORT:-8080}"
|
PORT="${PORT:-8080}"
|
||||||
|
HOST="${HOST:-0.0.0.0}"
|
||||||
if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
|
if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
|
||||||
echo "No WEBUI_SECRET_KEY provided"
|
echo "No WEBUI_SECRET_KEY provided"
|
||||||
|
|
||||||
|
@ -29,4 +30,4 @@ if [ "$USE_CUDA_DOCKER" = "true" ]; then
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/python3.11/site-packages/torch/lib:/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/python3.11/site-packages/torch/lib:/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'
|
WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
|
||||||
|
|
Loading…
Reference in a new issue