Commit 4c69179
fix(anythingllm): inject required OPENROUTER_API_KEY into container env
The compose files documented OPENROUTER_API_KEY as a required Infisical
secret, but the environment block only injected JWT_SECRET and ADMIN_EMAIL
— the original Helm chart mounted all three. A redeploy/restore came up with
no OpenRouter credential in the container env; for the INT-S004 restore
specifically AnythingLLM would fall back to the expired key persisted in the
restored storage/.env, breaking inference with an opaque OpenRouter 401.
- Add fail-loud `${OPENROUTER_API_KEY:?...}` injection (same pattern as the
JWT_SECRET guard) to the template and both live sites (s004.ccc.bot,
ai.weown.agency). A value injected via `infisical run` now overrides the
stale persisted key.
- Default OPENROUTER_MODEL_PREF (`:-anthropic/claude-opus-4.5` in sites,
`{{ openrouter_model_pref }}` in the template) to silence the Compose
"variable is not set" warning.
Validated: template re-renders byte-identical to the s004.ccc.bot site;
`docker compose config` resolves the key and defaults, and hard-fails with
the guard message when the key is absent.
Caught by Copilot review on PR #39.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7e6e11e commit 4c69179
4 files changed
Lines changed: 28 additions & 3 deletions
File tree
- anythingllm-docker
- sites
- ai.weown.agency/docker
- s004.ccc.bot/docker
- template/docker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments