Skip to content

fix(compose): support a TorBox-only setup#5

Merged
phrontizo merged 1 commit into
mainfrom
fix-compose-provider-token
Jun 4, 2026
Merged

fix(compose): support a TorBox-only setup#5
phrontizo merged 1 commit into
mainfrom
fix-compose-provider-token

Conversation

@phrontizo
Copy link
Copy Markdown
Owner

compose.yml hard-required RD_API_TOKEN (${RD_API_TOKEN:?…}) and never passed TORBOX_API_KEY to the container, so a TorBox-only .env failed at compose interpolation — before the container even started — contradicting the app's exactly-one-provider design.

Now both tokens are passed with an empty default (${VAR:-}); choose_provider already trims and drops empty tokens, so the unset one is treated as absent and the app selects whichever is non-empty (and errors clearly if neither or both are set).

Validated with docker compose config (interpolation resolves cleanly). Config-only change — no Rust code touched.

compose.yml hard-required RD_API_TOKEN (${RD_API_TOKEN:?...}) and never passed TORBOX_API_KEY to the container, so a TorBox-only .env failed at compose interpolation before the container started — contradicting the app's exactly-one-provider design.

Pass both tokens with an empty default (${VAR:-}) instead; choose_provider already trims and drops empty tokens, so the unset one is treated as absent and the app selects whichever is non-empty (erroring clearly if neither or both are set).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@phrontizo phrontizo merged commit e021db6 into main Jun 4, 2026
6 checks passed
@phrontizo phrontizo deleted the fix-compose-provider-token branch June 4, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant