[GH-ISSUE #10553] Some Issues and Suggestions #15932

Closed
opened 2026-04-19 22:00:14 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @superglg738 on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10553


Question 1:

I am using Docker to run Open-WebUI:

docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main

I bind the open-webui data directory to /app/backend/data. After an update to a new version, if the data structure changes, will it still work? Additionally, I have switched to using a vector database with the following configuration:

-e DATABASE_URL=postgres://postgres:xxxxx@pgvector:5432/openwebui

After upgrading the version, if the data structure changes again, is it possible to add database migration scripts for data structure updates?


Question 2:

I want to reverse proxy the website to my local Nginx. In the front-end code configuration (svelte.config.js), I set paths: {base: "nglocation"}. However, in the front-end code, there are many absolute paths, such as goto, which are redirecting to the root path (e.g., href='/'), which causes issues with reverse proxying. I need to perform a bulk modification to replace these paths.


Question 3:

In the /src/lib/constants.ts file, the WEBUI_BASE_URL points to the backend's 8080 port in the development environment, while the front-end development environment runs on port 5173. Many static resources in the front-end code use the {WEBUI_BASE_URL} variable, like this:

<img crossorigin="anonymous" src="{WEBUI_BASE_URL}/static/favicon.png" class="w-6 rounded-full" alt="logo" />

This causes static resources to fail to load in the development environment. The constants.ts variables need to be restructured to address this issue.


Question 4:

It is recommended to add a version identifier to the image tag, such as ghcr.io/open-webui/open-webui:main becoming main-v0.5.16. This would make it clearer which version is being downloaded, making it easier to distinguish from previous versions.

THANK YOU

Originally created by @superglg738 on GitHub (Feb 22, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10553 --- **Question 1:** I am using Docker to run Open-WebUI: ```bash docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main ``` I bind the `open-webui` data directory to `/app/backend/data`. After an update to a new version, if the data structure changes, will it still work? Additionally, I have switched to using a vector database with the following configuration: ```bash -e DATABASE_URL=postgres://postgres:xxxxx@pgvector:5432/openwebui ``` After upgrading the version, if the data structure changes again, is it possible to add database migration scripts for data structure updates? --- **Question 2:** I want to reverse proxy the website to my local Nginx. In the front-end code configuration (`svelte.config.js`), I set `paths: {base: "nglocation"}`. However, in the front-end code, there are many absolute paths, such as `goto`, which are redirecting to the root path (e.g., `href='/'`), which causes issues with reverse proxying. I need to perform a bulk modification to replace these paths. --- **Question 3:** In the `/src/lib/constants.ts` file, the `WEBUI_BASE_URL` points to the backend's 8080 port in the development environment, while the front-end development environment runs on port 5173. Many static resources in the front-end code use the `{WEBUI_BASE_URL}` variable, like this: ```html <img crossorigin="anonymous" src="{WEBUI_BASE_URL}/static/favicon.png" class="w-6 rounded-full" alt="logo" /> ``` This causes static resources to fail to load in the development environment. The `constants.ts` variables need to be restructured to address this issue. --- Question 4: It is recommended to add a version identifier to the image tag, such as ghcr.io/open-webui/open-webui:main becoming main-v0.5.16. This would make it clearer which version is being downloaded, making it easier to distinguish from previous versions. THANK YOU
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15932