From c5efeb24993a5ba441fa6e96d44ca6bd988869ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuna=20=C3=87a=C4=9Flar=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 10 Mar 2025 13:39:59 +0300 Subject: [PATCH 1/2] Add SSL Integration Comments and WebSocket Auto-Fix in start_windows.bat This PR enhances the start_windows.bat script by: Adding comments for SSL integration, making it easier for users to enable SSL when needed. Including the -ws auto flag to address WebSocket-related issues, ensuring a smoother experience for users facing connection problems. These improvements make the script more user-friendly and help troubleshoot common setup challenges. --- 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 7049cd1b3..37dfdae1f 100644 --- a/backend/start_windows.bat +++ b/backend/start_windows.bat @@ -41,4 +41,5 @@ IF "%WEBUI_SECRET_KEY%%WEBUI_JWT_SECRET_KEY%" == " " ( :: Execute uvicorn SET "WEBUI_SECRET_KEY=%WEBUI_SECRET_KEY%" -uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' +uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' --ws auto +:: For ssl user uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' --ssl-keyfile "key.pem" --ssl-certfile "fnss.pem" --ws auto From 9e7193b3d2f56cd872b1d485575613cd835899de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuna=20=C3=87a=C4=9Flar=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 10 Mar 2025 22:37:57 +0300 Subject: [PATCH 2/2] Update start_windows.bat --- backend/start_windows.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/start_windows.bat b/backend/start_windows.bat index 37dfdae1f..19f6f123c 100644 --- a/backend/start_windows.bat +++ b/backend/start_windows.bat @@ -42,4 +42,4 @@ IF "%WEBUI_SECRET_KEY%%WEBUI_JWT_SECRET_KEY%" == " " ( :: Execute uvicorn SET "WEBUI_SECRET_KEY=%WEBUI_SECRET_KEY%" uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' --ws auto -:: For ssl user uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' --ssl-keyfile "key.pem" --ssl-certfile "fnss.pem" --ws auto +:: For ssl user uvicorn open_webui.main:app --host "%HOST%" --port "%PORT%" --forwarded-allow-ips '*' --ssl-keyfile "key.pem" --ssl-certfile "cert.pem" --ws auto