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.
Originally created by @tim-roethig on GitHub (Nov 20, 2024).
### Discussed in https://github.com/open-webui/open-webui/discussions/3431
<div type='discussions-op-text'>
<sup>Originally posted by **tim-roethig-db** June 25, 2024</sup>
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](https://github.com/open-webui/open-webui/blob/9e4dd4b86f77653b59dc1fa97fe3f72e8252b359/src/lib/constants.ts#L7), 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.</div>
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.