mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #4550] enh: config.json to db #13650
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 @crizCraig on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4550
Originally assigned to: @tjbck on GitHub.
Is your feature request related to a problem? Please describe.
config.json is currently a source controlled file that may contain user-specific keys. it also does not seem to be suitable for distributed deployments where web servers are on multiple machines (unless the file is symlinked to EFS or similar)
Describe the solution you'd like
It seems like config should be stored in the DB so that distributed deployments can access it in a central location. This would also make sense to put keys in since it's not source controlled
Describe alternatives you've considered
The file could be removed from git and centralized via EFS or persistent store or some shared disk, but this seems like a bandaid.
Additional context
I've only been working with open webui for a couple weeks.
@crizCraig commented on GitHub (Aug 16, 2024):
It looks like
OPENAI_API_KEYS,OPENAI_API_BASE_URLS, and otherPersistentConfigcan be pulled from.envas semi-colon separated values. So that's a workaround to the version control part of this issue.@asdf8675309 commented on GitHub (Aug 21, 2024):
Glad to see this is addressed - I put them in a docker-compose.yml file - not sure that's any better.
@tjbck commented on GitHub (Aug 25, 2024):
Added to dev, testing wanted here!