33 Commits
Author SHA1 Message Date
ginnoir 385e103dde fix(media): mount unified /storage1 in sonarr, radarr, bazarr for hardlinks 2026-11-21 19:05:32 -06:00
ginnoirandClaude Opus 5.5 d4ed52b29a feat(recyclarr): add TRaSH [Anime] Remux-1080p profile for Sonarr
Anime series (338) can't use WEB-1080p: it only allows WEB, so anime
BD encodes would be rejected. All Sonarr anime series + anime import
lists now use [Anime] Remux-1080p; standard series use WEB-1080p,
movies use HD Bluray + WEB. Ultra-HD items were left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:22:12 -06:00
ginnoirandClaude Opus 5.5 38f49fdc6b fix(recyclarr): unique instance names + correct WEB-1080p trash_id
recyclarr v8 silently exits on duplicate instance names across services
(both were `main`), and the Sonarr WEB-1080p profile trash_id was
garbled (33 chars). Rename to sonarr-main/radarr-main and use
72dae194fc92bf828f32cde7744e51a1 from the TRaSH guide JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:42:11 -06:00
ginnoirandClaude Opus 5.5 09ce938f6e fix(media): mount recyclarr config from /config/recyclarr
./recyclarr resolved to /data/compose/10/... (the Portainer-internal
path), so recyclarr has run against an empty /config since 2026-06-17
and never synced TRaSH profiles. The config is now copied to
/config/recyclarr on the host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:35:54 -06:00
ginnoirandClaude Opus 5.5 4aea57a7d7 fix(media): mount mam-bonus script from /config, not ./
A relative bind resolves to /data/compose/10/... (the path inside the
Portainer container), so Docker bound an empty host dir and the job had
no script. Use the absolute /config/mam-bonus/buy-upload.sh like the
backup stack does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:25:35 -06:00
ginnoirandClaude Opus 5.5 ca257000c8 feat(media): add mam-bonus daily upload-credit buyer
Spends MAM bonus points once a day (04:17) on upload credit via
json/bonusBuy.php (spendtype=upload, "Max Affordable ") so seedbonus
never caps out. Dedicated MAM session; rotated mam_id is persisted in a
curl cookie jar under /config/mam-bonus. Skips when below the 50 GiB
minimum; failures alert ntfy topic `mam`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:20:02 -06:00
ginnoirandClaude Opus 5.5 f0ce040ed2 feat(media): add courarr for seasonal AniList anime lists
Deploy Caddyfile to valhalla / deploy (push) Successful in 21s
The Trakt "latest-anime" import list in Sonarr has silently added nothing
since its OAuth token lapsed on 2024-12-02. Courarr builds seasonal lists
straight from AniList (no key, no OAuth), maps them to TVDB via
Fribb/anime-lists, and serves them as Sonarr Custom List feeds at
http://courarr:6161/feed/<slug> over the media network.

courarr.ginnoir.com is internal-only behind Authentik forward auth
(provider homelab-courarr, pk 49); /api and /feed skip SSO.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 02:41:28 -05:00
ginnoirandClaude Opus 5.5 a50849b766 fix(media): on-complete hook reads author/title from end of MAM save path
autobrr's {{ .Category }} renders as "Audiobook/Non-Fiction", so the save
path is <Category>/<SubCategory>/<Author>/<Title>; indexing from the front
would have filed books under the subcategory as author.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:56:51 -05:00
ginnoirandClaude Opus 5.5 247276af25 feat(media): qBittorrent on-complete hook files MAM grabs into book libraries
AutoRun now runs on-complete.py: it keeps the cross-seed webhook and, for
category mam (autobrr MyAnonamouse filter), hardlinks audiobooks into the
ABS library and copies ebooks into the CWA ingest folder (CWA edits and then
deletes ingest files, so a hardlink would corrupt the seed). Host copy lives
at /config/qbittorrent/scripts/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:52:18 -05:00
ginnoirandClaude Opus 5.5 c53052daee fix(media): pin qbittorrent to 5.2.4 (downgrade from 5.3.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 17:00:00 -05:00
ginnoirandClaude Opus 5.5 a09f7f6d52 docs(media): note storyteller CUDA pin is the v3 beta and where the v2 DB backup is
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 19:48:19 -05:00
ginnoirandClaude Opus 5.5 17743dfdcf feat(media): run Storyteller whisper on the P100 (CUDA 12.9 image)
Switch storyteller to the amd64-cuda-12.9.0 image with the P100 via CDI.
Tested on a 2-min clip: 3.9 s on GPU vs 25 s on the CPU build. The whisper
build lacks sm_60 kernels, so persist the PTX JIT cache under /data.
CUDA images are SHA-tagged only, so pin the tag and exclude from Watchtower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 19:39:31 -05:00
ginnoirandClaude Opus 5.5 a92c417f03 feat(media): autobrr wired to qbit + cross-seed; ops API key; docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 16:36:11 -05:00
ginnoirandClaude Opus 5.5 6e9f75220a feat(media): autobrr with Authentik OIDC
Deploy Caddyfile to valhalla / deploy (push) Successful in 42s
- autobrr service in the media stack (media + edge nets, /config/autobrr),
  native OIDC via Authentik provider homelab-autobrr (pk 48, ginnoir-only
  binding); built-in login disabled.
- Caddy: autobrr.ginnoir.com, internal_only, no forward_auth.
- Bookmarks regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 16:28:29 -05:00
ginnoirandClaude Opus 5.5 a510504c7f fix(media): cross-seed qbit login creds in stack.env (qbit auth is on)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:59:22 -05:00
ginnoirandClaude Opus 5.5 ac367cc707 feat(media): cross-seed (dry-run) + move qbittorrent off the 6881 port
- qbittorrent: torrent port 6881 -> 43817 (6881-6889 is banned on many
  private trackers), plus a same-path /storage1 mount so cross-seed
  hardlinks resolve identically in both containers.
- cross-seed v6 daemon on the media net; config.js is host-managed at
  /config/cross-seed and reads API keys from stack.env. Starts in
  action "save" (dry run) against TorrentLeech.
- Plan: docs/superpowers/plans/2026-10-18-cross-seed-autobrr.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:58:23 -05:00
ginnoirandClaude Opus 5.5 6d8d34d996 fix(authentik): allow ABS /audiobookshelf-prefixed OIDC callbacks
Current Audiobookshelf serves under /audiobookshelf, so it sends
/audiobookshelf/auth/openid/callback, which Authentik rejected. Add the
prefixed callback + mobile-redirect URIs, and have setup-books-auth.py
sync redirect URIs on existing providers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:25:13 -05:00
ginnoirandClaude Opus 5.5 e1fd7acce9 fix(authentik): chaptarr verified-email mapping + ginnoir-only binding
Authentik's default email scope hardcodes email_verified=false, which
Chaptarr's OIDC rejects. Chaptarr gets its own verified email mapping,
and the app is bound to the ginnoir user so the email allowlist can't
be matched by another account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 13:52:36 -05:00
ginnoirandClaude Opus 5.5 f92cad4d66 feat(media): chaptarr native OIDC instead of forward_auth
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m23s
Chaptarr has built-in OIDC (/signin-oidc), so per the auth standard it
gets Pattern A: new homelab-chaptarr OAuth2 provider, old forward_auth
proxy provider removed, Caddy block reduced to internal_only + proxy.
setup-books-auth.py now handles both OIDC apps generically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 13:46:49 -05:00
ginnoirandClaude Opus 5.5 72688f48ac feat(authentik): books-stack providers + ABS OIDC client
Deploy Caddyfile to valhalla / deploy (push) Failing after 1m37s
Adds idempotent scripts/run-books-auth.sh (ak shell) that creates
forward_single proxy providers for chaptarr/books/storyteller on the
embedded outpost and the homelab-audiobooks OIDC provider. Records the
ABS client credentials in media stack.env and marks host prep done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 02:44:32 -05:00
ginnoirandClaude Opus 5.5 ca00f8899d feat(media): add books stack (chaptarr, CWA, audiobookshelf, storyteller)
Chaptarr grabs ebooks into the CWA ingest folder and audiobooks into the
ABS library; Storyteller reads both read-only for read-along alignment.
All four are internal_only; chaptarr/CWA/storyteller use forward_auth,
ABS uses native OIDC. Adds STORYTELLER_SECRET_KEY to stack.env and a
BOOKS.md runbook (host prep, Authentik, post-deploy checklist).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 02:44:32 -05:00
ginnoir bf8caccd88 fix(media): raise nofile ulimit to 65536 for *arr containers
sonarr/radarr/prowlarr/whisparr/bazarr were hitting the default Docker
nofile limit of 1024, causing EMFILE errors and excessive virtiofsd FD
churn on the /storage1 virtiofs mount.
2026-06-24 01:28:08 -05:00
ginnoirandClaude Sonnet 4.6 c6e8af7e62 chore(media): remove maintainerr
Deploy Caddyfile to valhalla / deploy (push) Successful in 48s
Too complex to configure for the use case; not worth the overhead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 22:03:12 -05:00
ginnoirandClaude Sonnet 4.6 29d04980fd feat(media): update maintainerr to v3 (new GHCR org)
Image moved from ghcr.io/jorenn92/maintainerr to ghcr.io/maintainerr/maintainerr
with the v3.x release series. v3 runs its own DB migrations on startup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 21:35:26 -05:00
ginnoirandClaude Sonnet 4.6 fb3938c71b feat: migrate Overseerr → Seerr
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m20s
Replace sctx/overseerr:latest with ghcr.io/seerr-team/seerr:latest.
Same port (5055), same config volume (/config/overseerr:/app/config) —
Seerr auto-migrates the DB on first boot. Add init: true as required.
Rename container overseerr → seerr; update Caddy upstream to match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 21:00:09 -05:00
ginnoirandClaude Sonnet 4.6 1bc648f33b fix(maintainerr): correct data volume path and enable TLS bypass for Plex
- Mount /config/maintainerr to /opt/data (actual DB location, not /opt/maintainerr/data)
- Add NODE_TLS_REJECT_UNAUTHORIZED=0 so Node.js accepts Plex's self-signed cert
- Mark TB-007/008/009/012/013/016 tasks as done/dropped in improvement plan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 20:52:06 -05:00
ginnoir f923cd5b49 feat(media): add maintainerr for stale overseerr request cleanup
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m11s
2026-06-15 20:25:51 -05:00
ginnoir 8ef2f689f6 chore(media): retire deluge, qbit is the sole torrent client
Deploy Caddyfile to valhalla / deploy (push) Successful in 1m7s
2026-06-15 20:19:16 -05:00
ginnoir 51acb44322 Ship homelab quick wins: Recyclarr, infra pins, jd.ginnoir.com, and LAN lockdown.
Deploy to valhalla / deploy (push) Has been cancelled
Add Recyclarr to the media stack, pin database/object-store/Caddy/Vault images with Watchtower disabled, expose JDownloader at jd.ginnoir.com, and restrict minio/homarr/docs to internal_only. Mark TB-002–004 and TB-033 complete; bundle batch-3 OIDC env for FreshRSS, ownCloud, and Reactive Resume.
2026-06-11 02:28:06 -05:00
ginnoir 7aa95fa00a refactor: pure env_file stack.env convention across all stacks
Every service now reads stack.env via env_file with container-exact var
names — no ${VAR} parse-time interpolation, no Portainer UI env vars
(except stacks/dev, kept on UI-env interpolation as documented exception).

- media: drop PUID/PGID/TZ env lines (env_file covers); resolve ${ROOT}
- foundry: secrets via env_file; FOUNDRY_PATCH_URLS -> CONTAINER_PATCH_URLS
- monitoring: HOMARR_SECRET_ENCRYPTION_KEY -> SECRET_ENCRYPTION_KEY
- notify: FRESHRSS_USER composed in stack.env; TZ via env_file
- owncloud: container-exact OWNCLOUD_*/MYSQL_* keys; runtime $$ healthcheck
- resume/famapp: composites (DATABASE_URL etc.) written out in stack.env
- authentik: container-exact keys; image tag pinned in compose
- notes: couchdb creds via env_file
- remote: gains stack.env (no secrets; convention completeness)
- CLAUDE.md: env convention, valhalla-lab registration-only note, correct
  on-host Portainer working-copy path (/config/portainer/compose/<id>)

Validated with docker compose config on valhalla for all 15 stacks.
2026-06-09 16:03:47 -05:00
ginnoir 1e2970d220 chore: add env_file: stack.env to all compose services
Portainer git-stack deployments require an explicit env_file reference
in the compose file to load variables from the repo's stack.env.
Adds env_file: [stack.env] before every service-level environment:
block across all 10 stacks.
2026-06-04 22:11:51 -05:00
ginnoir 441e1ee272 chore: rename stack .env files to stack.env for Portainer git stack compatibility
Portainer git-stack deploys require stack.env (not .env) in the repo.
Renames all stacks/*/. env → stacks/*/stack.env so Portainer reads
secrets directly from git on each redeploy, making the repo the single
source of truth instead of requiring manual UI sync.

Also fixes the dev stack BOOKSTACK_APP_KEY gap — the key was already
present in the file but missing from Portainer's stored envVars; it
will now be picked up automatically from stack.env on next redeploy.

Updates CLAUDE.md to reflect the new filename convention.
2026-06-04 21:41:56 -05:00
ginnoir 57cd6ed270 refactor: split monolith into per-domain stacks (Phase A: build)
Add stacks/<domain>/ compose + env for the 11 target stacks (proxy, media,
foundry, owncloud, resume, famapp, authentik, notify, monitoring, remote, dev).
Each app stack joins a shared external `edge` network for Caddy and keeps its
DB/cache co-located (no shared backing services). All named volumes convert to
tiered bind mounts: DBs/configs -> /config (SSD), blobs/repos/registry ->
/storage1/labdata (ZFS). Gitea repos+LFS split to ZFS.

Move Vault into the management plane (portainer-compose.yml) and add the shared
`edge` network there. apply-compose.ps1 -Portainer now also pushes vault.hcl.

Additive only: root docker-compose.yml/.env/Caddyfile untouched, so the live
monolith is unchanged. Live cutover (Phase B) is next.
2026-06-04 16:11:31 -05:00