mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #14679] [CLOSED] Feat(main): Use the environment variable PORT/HOST to dynamically print UI URL #62405
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14679
Author: @TatsuhiroC
Created: 6/5/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
1079108Update default localhost link377d3a7Update main.py📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
backend/open_webui/main.py(+7 -0)📄 Description
Description
• This way, whether the user is using bash backend/start.sh, open-webui serve --port xxx, or directly uvicorn open_webui.main:app --port xxx, as long as PORT or/and HOST are exported to the environment variables, the access address prompt in the terminal will be consistent with the actual listening port.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.