mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
configurable Base URL for the UI #2722
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?
Originally created by @tim-roethig on GitHub (Nov 20, 2024).
Discussed in https://github.com/open-webui/open-webui/discussions/3431
Originally posted by tim-roethig-db June 25, 2024
I want to run Open Web UI under a configurable Base URL. e.g. http://localhost:8080/MY_CUSTOM_BASE
It would be nice to have a env var for this.
I thought it might be possible to do it via the WEBUI_URL env var, but it seems to be mostly unused if I see this correctly.
I also found this code, where the BASE_URL seems to be hard coded, maybe this can be altered easily.
Thanks for your time and the amazing project. Hope I didn't overlooked anything.
Find here some tries of mine:
I initially thought it might be possible by doing some easy fixes, such as adding a root_path to the fastapis or adding a base path to the svelte.config.js as in this draft pr: https://github.com/tim-roethig-db/open-webui/pull/5
But it looks like this is not enough, since the svelte code contains a lot of hard coded absolute paths in goto, href and src. So I think quite a lot of changes in the svelte files might be necessary as i this draft pr: https://github.com/tim-roethig-db/open-webui/pull/4
Unfortunately both of these tries do not work. The best I achieved was to get the auth and the home screen to be served behind a base path.