mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-14 02:55:00 -05:00
feat: persist settings to backend #406
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 @tjbck on GitHub (Mar 3, 2024).
Originally assigned to: @tjbck on GitHub.
Related #981 #988 #900
@changchiyou commented on GitHub (Mar 12, 2024):
I don't have a clear idea yet on how to persist settings to the backend, but may I ask if you would welcome me to create a workaround PR for #988 in the meantime?
Here's my idea: Even though there is no documentation mentioning it, I observed that users can set
DEFAULT_USER_ROLEin the environment variables and have it read by :7ae4669f35/backend/config.py (L290)Then assigned to
app.state.DEFAULT_USER_ROLEin:7ae4669f35/backend/apps/web/main.py (L33)Could I apply a similar logic to handle
USER_PERMISSIONSas well? For example:7ae4669f35/backend/config.py (L291)@Fusseldieb commented on GitHub (Apr 17, 2024):
This also applies to the OpenAI API key. It gets lost every container restart, even with a volume present.
@ChaoticByte commented on GitHub (Apr 21, 2024):
For me also the "Enable New Sign Ups" setting resets to "Enable" every time the container is restarted.
Especially this setting should persist, and honestly this looks more like a bug than a missing feature.
(I don't want bots to flood my server with pending accounts)
@frost19k commented on GitHub (Apr 30, 2024):
Chiming in to point out that
Embedding Model Engine(in Document Settings) set toOpenAIdoes not persist either. Also,OPENAI_API_BASE_URL&OPENAI_API_KEYdo not seem to reflect there. However,Embedding Modelcan be updated by settingRAG_EMBEDDING_MODELvar.Edit: Found the relevant env vars
@JTHesse commented on GitHub (May 13, 2024):
Please make
Default User Rolepersistent as well 🙃@changchiyou commented on GitHub (May 13, 2024):
@JTHesse It's already possible to make
Default User Rolepersistent:According to
90503be2ed/backend/config.py (L411), create your own enviroment at
90503be2ed/docker-compose.yaml (L27-L29). For example:
@mmmmmmmgo commented on GitHub (May 19, 2024):
https://github.com/open-webui/open-webui/discussions/1876
ENABLE_SIGNUP