[PR #3041] [MERGED] feat: custom HOST env variable on windows #7966

Closed
opened 2025-11-11 17:41:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/3041
Author: @cocktailpeanut
Created: 6/11/2024
Status: Merged
Merged: 6/11/2024
Merged by: @tjbck

Base: devHead: main


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 backend/start_windows.bat (+2 -1)

📄 Description

Description

Currently you can customize the HOST with an environment variable in non-windows environments https://github.com/open-webui/open-webui/blob/main/backend/start.sh#L9 but this is not implemented on Windows. On windows it's using a hardcoded value of 0.0.0.0 https://github.com/open-webui/open-webui/blob/main/backend/start_windows.bat#L32

Ironically it is Windows where we need the ability to use custom HOST because 0.0.0.0 sometimes has trouble on windows and need to use 127.0.0.1

Added

Just replicated the custom HOST feature in start.sh into start_windows.bat


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/3041 **Author:** [@cocktailpeanut](https://github.com/cocktailpeanut) **Created:** 6/11/2024 **Status:** ✅ Merged **Merged:** 6/11/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (1) - [`884eb9f`](https://github.com/open-webui/open-webui/commit/884eb9f7ee5d19acfd36cd267957a7f8da2d486a) update ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/start_windows.bat` (+2 -1) </details> ### 📄 Description ### Description Currently you can customize the HOST with an environment variable in non-windows environments https://github.com/open-webui/open-webui/blob/main/backend/start.sh#L9 but this is not implemented on Windows. On windows it's using a hardcoded value of 0.0.0.0 https://github.com/open-webui/open-webui/blob/main/backend/start_windows.bat#L32 Ironically it is Windows where we need the ability to use custom HOST because 0.0.0.0 sometimes has trouble on windows and need to use 127.0.0.1 ### Added Just replicated the custom HOST feature in start.sh into start_windows.bat --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:41:26 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7966