Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(settings): remove phantom LDR_LOCKED_SETTINGS, fix env-precedence claim (#5001)

LearningCircuit53bf8e8e313e
diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md
index 8edcfb953b..1e82b23882 100644
--- a/docs/CONFIGURATION.md
+++ b/docs/CONFIGURATION.md
@@ -8,21 +8,8 @@ All settings can be configured via the Web UI (Settings page), or overridden via
To override a setting using an environment variable, convert the key to uppercase, replace dots with underscores, and prefix with `LDR_`.
For example, `app.debug` becomes `LDR_APP_DEBUG`.
-Configuration Priority: Web UI Config > Environment Variables > Default Values
-> Environmental Variables are used to override default values, easing installation, while allowing for adjustments to configuration via Web UI.
-
-### System Locking
-There is a special environment variable `LDR_LOCKED_SETTINGS` that allows administrators to strictly enforce specific settings.
-
-* **Variable**: `LDR_LOCKED_SETTINGS`
-* **Format**: Comma-separated list of setting keys (e.g., `llm.model,app.port`)
-* **Behavior**:
- 1. Any setting listed here **MUST** have a corresponding value defined in the environment variables (e.g., `LDR_LLM_MODEL`). If not, the application will fail to start.
- 2. The setting becomes **read-only** in the Web UI.
- 3. The **Environment Variable** value takes absolute precedence, ignoring any value in the database.
-
-**Priority for Locked Settings**: Environment Variable > Database (Ignored) > Default (Ignored)
-
+Configuration Priority: Environment Variables > Web UI Config (Database) > Default Values
+> Environmental Variables are used to override default values, easing installation, while allowing for adjustments to configuration via Web UI. When an environment variable is set, it takes precedence over any value stored in the database, and the Web UI marks that setting as non-editable. Programmatic writes (via the settings API or `import_settings`) still succeed but are silently shadowed by the env value on read.
## Pre-Database (Env-Only) Settings
diff --git a/scripts/generate_config_docs.py b/scripts/generate_config_docs.py
index d2f588ba8c..84d676ec9b 100755
--- a/scripts/generate_config_docs.py
+++ b/scripts/generate_config_docs.py
@@ -244,21 +244,8 @@ def generate_docs_content(root_dir: Optional[Path] = None) -> str:
"To override a setting using an environment variable, convert the key to uppercase, replace dots with underscores, and prefix with `LDR_`.",
"For example, `app.debug` becomes `LDR_APP_DEBUG`.",
"",
- "Configuration Priority: Web UI Config > Environment Variables > Default Values",
- "> Environmental Variables are used to override default values, easing installation, while allowing for adjustments to configuration via Web UI.",
- "",
- "### System Locking",
- "There is a special environment variable `LDR_LOCKED_SETTINGS` that allows administrators to strictly enforce specific settings.",
- "",
- "* **Variable**: `LDR_LOCKED_SETTINGS`",
- "* **Format**: Comma-separated list of setting keys (e.g., `llm.model,app.port`)",
- "* **Behavior**:",
- " 1. Any setting listed here **MUST** have a corresponding value defined in the environment variables (e.g., `LDR_LLM_MODEL`). If not, the application will fail to start.",
- " 2. The setting becomes **read-only** in the Web UI.",
- " 3. The **Environment Variable** value takes absolute precedence, ignoring any value in the database.",
- "",
- "**Priority for Locked Settings**: Environment Variable > Database (Ignored) > Default (Ignored)",
- "",
+ "Configuration Priority: Environment Variables > Web UI Config (Database) > Default Values",
+ "> Environmental Variables are used to override default values, easing installation, while allowing for adjustments to configuration via Web UI. When an environment variable is set, it takes precedence over any value stored in the database, and the Web UI marks that setting as non-editable. Programmatic writes (via the settings API or `import_settings`) still succeed but are silently shadowed by the env value on read.",
"",
]