From 884eb9f7ee5d19acfd36cd267957a7f8da2d486a Mon Sep 17 00:00:00 2001 From: cocktailpeanut Date: Tue, 11 Jun 2024 12:32:29 -0400 Subject: [PATCH] update --- backend/start_windows.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/start_windows.bat b/backend/start_windows.bat index d56c91916..b2498f9c2 100644 --- a/backend/start_windows.bat +++ b/backend/start_windows.bat @@ -8,6 +8,7 @@ cd /d "%SCRIPT_DIR%" || exit /b SET "KEY_FILE=.webui_secret_key" IF "%PORT%"=="" SET PORT=8080 +IF "%HOST%"=="" SET HOST=0.0.0.0 SET "WEBUI_SECRET_KEY=%WEBUI_SECRET_KEY%" SET "WEBUI_JWT_SECRET_KEY=%WEBUI_JWT_SECRET_KEY%" @@ -29,4 +30,4 @@ IF "%WEBUI_SECRET_KEY%%WEBUI_JWT_SECRET_KEY%" == " " ( :: Execute uvicorn SET "WEBUI_SECRET_KEY=%WEBUI_SECRET_KEY%" -uvicorn main:app --host 0.0.0.0 --port "%PORT%" --forwarded-allow-ips '*' +uvicorn main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*'