arrstack: set *arr UrlBase=/<app> for path-based proxy hosting #378

Merged
benvin merged 2 commits from benvin/arr-urlbase into main 2026-08-17 07:59:48 +10:00
Member

Why

arrproxy forwards arrstack.unkin.net/<app>/... to each *arr Service preserving the /<app> prefix. Without a matching <UrlBase> the apps 307-redirect to /, breaking path-based hosting. Prerequisite for arrproxy path routing (PR #377... arrproxy service account added in #376).

Change

Extend the existing idempotent apikey-init init container in sonarr/radarr/prowlarr to also enforce <UrlBase>/<app></UrlBase> in /config/config.xml (sonarr=/sonarr, radarr=/radarr, prowlarr=/prowlarr):

  • Set/replace <UrlBase> if present, insert after <Config> if absent, or write both <ApiKey> + <UrlBase> when creating a fresh config. <ApiKey> handling is unchanged.
  • Because Servarr moves all routes (including /ping) under the URL base, update liveness/readiness probes from /ping to /<app>/ping so they don't 404 once UrlBase is set.

nzbget is not fronted by arrproxy and is left untouched.

Validation

  • kustomize build --enable-helm apps/overlays/au-syd1/arrstack succeeds
  • pre-commit (yamllint etc.) passes
## Why arrproxy forwards `arrstack.unkin.net/<app>/...` to each *arr Service **preserving** the `/<app>` prefix. Without a matching `<UrlBase>` the apps 307-redirect to `/`, breaking path-based hosting. Prerequisite for arrproxy path routing (PR #377... arrproxy service account added in #376). ## Change Extend the existing idempotent `apikey-init` init container in sonarr/radarr/prowlarr to also enforce `<UrlBase>/<app></UrlBase>` in `/config/config.xml` (sonarr=/sonarr, radarr=/radarr, prowlarr=/prowlarr): - Set/replace `<UrlBase>` if present, insert after `<Config>` if absent, or write both `<ApiKey>` + `<UrlBase>` when creating a fresh config. `<ApiKey>` handling is unchanged. - Because Servarr moves all routes (including `/ping`) under the URL base, update liveness/readiness probes from `/ping` to `/<app>/ping` so they don't 404 once UrlBase is set. nzbget is not fronted by arrproxy and is left untouched. ## Validation - `kustomize build --enable-helm apps/overlays/au-syd1/arrstack` succeeds - `pre-commit` (yamllint etc.) passes
unkin-agent added 1 commit 2026-08-16 21:51:31 +10:00
arrstack: set *arr UrlBase=/<app> for path-based proxy hosting
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline failed
04b56e8938
benvin added 1 commit 2026-08-16 23:09:28 +10:00
Merge branch 'main' into benvin/arr-urlbase
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful
4add8043f1
benvin merged commit 76da30d2f7 into main 2026-08-17 07:59:48 +10:00
benvin deleted branch benvin/arr-urlbase 2026-08-17 07:59:49 +10:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/argocd-apps#378