[PR #284] [CLOSED] 281 migrate processenv settings into db records #3283

Closed
opened 2026-02-22 18:33:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/284
Author: @shatfield4
Created: 10/23/2023
Status: Closed

Base: masterHead: 281-migrate-processenv-settings-into-db-records


📝 Commits (10+)

  • f2a10d1 syncWithEnvVariables and currentSettings functions updated to dump .env/insert into db
  • c4c56cb refactor server to get value from db
  • eec0ca6 convert system and chat to use db instead of .env
  • 1231efd update system to use db instead of .env
  • abf1be5 fix MUM and password protect using new db methods
  • 6427f77 update utils to use db instead of .env
  • b773d20 minor fixes to .get response calls
  • 4db70a3 update workspaces to use db instead of .env and do .env checks on express server boot
  • a72685f documents updated to use db instead of .env
  • f0bd7a7 refactoring to keep consistent

📊 Changes

25 files changed (+436 additions, -187 deletions)

View changed files

📝 frontend/src/models/system.js (+1 -1)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+17 -15)
📝 frontend/src/pages/GeneralSettings/VectorDatabase/index.jsx (+13 -12)
📝 frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/LLMSelection/index.jsx (+18 -16)
📝 frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/VectorDatabaseConnection/index.jsx (+12 -12)
📝 server/endpoints/admin.js (+1 -1)
📝 server/endpoints/api/system/index.js (+1 -1)
📝 server/endpoints/api/workspace/index.js (+13 -5)
📝 server/endpoints/chat.js (+7 -2)
📝 server/endpoints/system.js (+40 -17)
📝 server/endpoints/utils.js (+2 -1)
📝 server/endpoints/workspaces.js (+8 -3)
📝 server/index.js (+28 -18)
📝 server/models/documents.js (+17 -6)
📝 server/models/systemSettings.js (+132 -28)
📝 server/models/telemetry.js (+5 -2)
📝 server/utils/AiProviders/azureOpenAi/index.js (+26 -10)
📝 server/utils/AiProviders/openAi/index.js (+13 -3)
📝 server/utils/chats/index.js (+2 -2)
📝 server/utils/helpers/index.js (+20 -7)

...and 5 more files

📄 Description

resolves #281

Remove reliance on .env to store config and move all the config to our database system_settings table.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/284 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 10/23/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `281-migrate-processenv-settings-into-db-records` --- ### 📝 Commits (10+) - [`f2a10d1`](https://github.com/Mintplex-Labs/anything-llm/commit/f2a10d1cd5f2cd51b1b826556a6461c5e2c65f50) syncWithEnvVariables and currentSettings functions updated to dump .env/insert into db - [`c4c56cb`](https://github.com/Mintplex-Labs/anything-llm/commit/c4c56cb84103001d2db9fb1d979cab8f5de4f1d8) refactor server to get value from db - [`eec0ca6`](https://github.com/Mintplex-Labs/anything-llm/commit/eec0ca60d58c53ace6f5d298da50e5cb9fe17007) convert system and chat to use db instead of .env - [`1231efd`](https://github.com/Mintplex-Labs/anything-llm/commit/1231efd20b59cd6529468ff5222eb5f683089bd8) update system to use db instead of .env - [`abf1be5`](https://github.com/Mintplex-Labs/anything-llm/commit/abf1be5ae8ba61874f195ade5423af69e67c92ca) fix MUM and password protect using new db methods - [`6427f77`](https://github.com/Mintplex-Labs/anything-llm/commit/6427f779178b21dfc2b784c147a8188ddef69227) update utils to use db instead of .env - [`b773d20`](https://github.com/Mintplex-Labs/anything-llm/commit/b773d20e514a317b8d780df84b7b0aaa4df7711e) minor fixes to .get response calls - [`4db70a3`](https://github.com/Mintplex-Labs/anything-llm/commit/4db70a34c3ab0bdff6f16f51438162393d045dd9) update workspaces to use db instead of .env and do .env checks on express server boot - [`a72685f`](https://github.com/Mintplex-Labs/anything-llm/commit/a72685fbe3274ed7c806772c080949e2ddec7065) documents updated to use db instead of .env - [`f0bd7a7`](https://github.com/Mintplex-Labs/anything-llm/commit/f0bd7a7b864c43d6e1fd3f1630f310a8715ee386) refactoring to keep consistent ### 📊 Changes **25 files changed** (+436 additions, -187 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/models/system.js` (+1 -1) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+17 -15) 📝 `frontend/src/pages/GeneralSettings/VectorDatabase/index.jsx` (+13 -12) 📝 `frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/LLMSelection/index.jsx` (+18 -16) 📝 `frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/VectorDatabaseConnection/index.jsx` (+12 -12) 📝 `server/endpoints/admin.js` (+1 -1) 📝 `server/endpoints/api/system/index.js` (+1 -1) 📝 `server/endpoints/api/workspace/index.js` (+13 -5) 📝 `server/endpoints/chat.js` (+7 -2) 📝 `server/endpoints/system.js` (+40 -17) 📝 `server/endpoints/utils.js` (+2 -1) 📝 `server/endpoints/workspaces.js` (+8 -3) 📝 `server/index.js` (+28 -18) 📝 `server/models/documents.js` (+17 -6) 📝 `server/models/systemSettings.js` (+132 -28) 📝 `server/models/telemetry.js` (+5 -2) 📝 `server/utils/AiProviders/azureOpenAi/index.js` (+26 -10) 📝 `server/utils/AiProviders/openAi/index.js` (+13 -3) 📝 `server/utils/chats/index.js` (+2 -2) 📝 `server/utils/helpers/index.js` (+20 -7) _...and 5 more files_ </details> ### 📄 Description resolves #281 Remove reliance on .env to store config and move all the config to our database system_settings table. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:27 -05:00
yindo closed this issue 2026-02-22 18:33:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3283