Repository navigation
feat(#338): env var coverage — UTEKE_LOG_LEVEL, SERVER_*, RECALL_* - #342
Merged
Merged
Conversation
| match v.parse::<u16>() { | ||
| Ok(port) => self.server.port = port, | ||
| Err(_) => { | ||
| tracing::warn!("Invalid UTEKE_SERVER_PORT='{v}', ignoring (expected 0-65535)") |
| 3. Config file (`uteke.toml`) | ||
| 4. Built-in default | ||
|
|
||
| | Env Var | Config Equivalent | Default | Description | |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
- Config::apply_env_overrides() reads UTEKE_* env vars after config file - Env vars: UTEKE_LOG_LEVEL, UTEKE_SERVER_HOST/PORT, UTEKE_RECALL_MIN_SCORE/STRICT - Resolution: CLI flag > env var > config file > default - 5 new tests (serial_test for env var isolation) - docs/configuration.md: complete env var table + Docker example Closes #338
ajianaz
force-pushed
the
feat/v020-338-env-vars
branch
from
June 14, 2026 13:00
773f8e5 to
52f7ffd
Compare
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
) - Config::apply_env_overrides() reads UTEKE_* env vars after config file - Env vars: UTEKE_LOG_LEVEL, UTEKE_SERVER_HOST/PORT, UTEKE_RECALL_MIN_SCORE/STRICT - Resolution: CLI flag > env var > config file > default - 5 new tests (serial_test for env var isolation) - docs/configuration.md: complete env var table + Docker example Closes #338
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #338
Changes
Env var support in Config
apply_env_overrides()called after config file merge inConfig::load()New env vars
UTEKE_LOG_LEVEL[logging] levelUTEKE_SERVER_HOST[server] hostUTEKE_SERVER_PORT[server] portUTEKE_RECALL_MIN_SCORE[recall] min_scoreUTEKE_RECALL_MIN_SCORE_STRICT[recall] min_score_strictResolution order
Tests
serial_testcrate (env var isolation)cargo test --workspace✅ (176 passed, 5 ignored) — 3x repeatcargo clippy --workspace --all-targets -- -D warnings✅cargo fmt --all✅Defer to v0.2.1
UTEKE_EMBEDDING_*vars — need feat: OpenAI + Ollama embedding backends (reqwest, ONNX stays default) #337 (OpenAI/Ollama backend) first