[GH-ISSUE #4550] enh: config.json to db #13650

Closed
opened 2026-04-19 20:18:58 -05:00 by GiteaMirror · 3 comments
Owner

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.

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.
Author
Owner

@crizCraig commented on GitHub (Aug 16, 2024):

It looks like OPENAI_API_KEYS, OPENAI_API_BASE_URLS, and other PersistentConfig can be pulled from .env as semi-colon separated values. So that's a workaround to the version control part of this issue.

<!-- gh-comment-id:2294420893 --> @crizCraig commented on GitHub (Aug 16, 2024): It looks like `OPENAI_API_KEYS`, `OPENAI_API_BASE_URLS`, and other `PersistentConfig` can be pulled from `.env` as semi-colon separated values. So that's a workaround to the version control part of this issue.
Author
Owner

@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.

<!-- gh-comment-id:2303021079 --> @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.
Author
Owner

@tjbck commented on GitHub (Aug 25, 2024):

Added to dev, testing wanted here!

<!-- gh-comment-id:2308947779 --> @tjbck commented on GitHub (Aug 25, 2024): Added to dev, testing wanted here!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13650