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:
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:
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
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 @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:
I bind the
open-webuidata 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: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 setpaths: {base: "nglocation"}. However, in the front-end code, there are many absolute paths, such asgoto, 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.tsfile, theWEBUI_BASE_URLpoints 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:This causes static resources to fail to load in the development environment. The
constants.tsvariables 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