Media apps on every drive: media_library marker on the seven media apps (controller 0.313.0; older ones ignore it); Transmission incomplete folder off at start; Plex: no code at install, ADVERTISE_IP, no probe (R-1023, R-1028)
gates / gates (push) Successful in 4s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-10-15 10:30:28 +02:00
1 parent 9a23ee5460
commit 0188430944
12 files changed
+91 -26

No files matched your search

+17
View File
@@ -1,3 +1,20 @@
## 2026-10-15 — media apps on every drive: the `media_library` marker; Plex without the 4-minute race (R-1023, R-1028)
Needs controller **0.313.0** to take effect; an older controller ignores every new key (non-strict YAML) and runs the
one-drive line exactly as before. Proven first on Tester 1 with the drill copies (felhom.eu
`documentation/audits/media-build-2026-10-15/G/`): nothing Sonarr/Radarr stored changed, Plex/Jellyfin kept every item,
every file identical.
- **`media_library:`** on Sonarr, Radarr (the whole `media` folder), qBittorrent (`folder: torrents`), Transmission
(`folder: transmission`), Plex, Jellyfin, Emby (`read_only: true`) — the controller adds one bind per present drive at
the same path (`15-media-library.md` §2/§3).
- **Transmission:** `incomplete-dir-enabled = false` written into `settings.json` at start (one incomplete folder would
make every other drive's download a cross-drive copy; an RPC setting was lost on a power cut — R-1024).
- **Plex (R-1028):** the claim code is no longer asked at install (`required: false`); controller 0.313.0 asks for it on
the Plex page once Plex runs and opens the setup gate only when Plex itself says claimed. NO `setup_done_probe` on
purpose (an older controller sends no Accept header, reads XML and would refuse „Kész" forever). `ADVERTISE_IP` so
plex.tv hands apps the tunnel address (measured 2026-10-14). `first_steps` hu + en; copy freeze re-admitted.
## 2026-10-15 — Plex installs closed: the setup gate (R-1045) ## 2026-10-15 — Plex installs closed: the setup gate (R-1045)
- `templates/plex/.felhom.yml`: `setup_gate: true`. An unclaimed Plex answers every request from a private address with - `templates/plex/.felhom.yml`: `setup_gate: true`. An unclaimed Plex answers every request from a private address with
+7 -8
View File
@@ -1,10 +1,9 @@
# REPORT — Plex installs closed by the setup gate (R-1045, 2026-10-15) # REPORT — media apps on every drive: the marker; Plex without the race (2026-10-15)
A fresh Plex is closed to everyone but the household until the household presses „Kész, beállítottam”. Before this, a - Seven media templates carry `media_library:`; controller 0.313.0 binds every present drive at the same path. Older
Plex whose 4-minute claim code ran out was open to anyone through the tunnel, with no password (measured 2026-10-14). controllers ignore it (one drive, as before).
- Transmission's incomplete folder is off at start. Plex: no code at install, the code on the Plex page after the
- `templates/plex/.felhom.yml`: `setup_gate: true`, no probe (Plex answers XML to the probe's request; measured). start (controller 0.313.0), `ADVERTISE_IP`; no probe (backward compatibility, explained in the template).
- `first_steps` hu + en: one new step, the button. Copy freeze re-admitted for plex. - Proof: Tester 1 with the drill copies (felhom.eu `audits/media-build-2026-10-15/G/`); demo-hp 9201 read-back after
this push (same folder, `G7`).
- Gates: `catalog_gates.py --fast` all OK. - Gates: `catalog_gates.py --fast` all OK.
- Live proof on demo-hp 9201 (with a code, with an expired code, a stranger over the public path):
`felhom.eu/documentation/audits/media-build-2026-10-15/A-plex-gate/`.
+7 -8
View File
@@ -933,12 +933,11 @@
"description": "Növénynapló és gondozás emlékeztető" "description": "Növénynapló és gondozás emlékeztető"
}, },
"plex": { "plex": {
"app_info.first_steps[0]": "Generálj egy claim tokent a https://plex.tv/claim oldalon", "app_info.first_steps[0]": "Telepítés után nyisd meg a Plex oldalát a vezérlőpulton",
"app_info.first_steps[1]": "Telepítés után nyisd meg a plex.DOMAIN címet", "app_info.first_steps[1]": "Generálj egy kódot a https://plex.tv/claim oldalon, és add meg ott",
"app_info.first_steps[2]": "Kapcsold össze a Plex fiókoddat a szerverrel", "app_info.first_steps[2]": "Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg",
"app_info.first_steps[3]": "Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg", "app_info.first_steps[3]": "Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)",
"app_info.first_steps[4]": "Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)", "app_info.first_steps[4]": "Telepítsd a Plex alkalmazást eszközeidre",
"app_info.first_steps[5]": "Telepítsd a Plex alkalmazást eszközeidre",
"app_info.prerequisites[0]": "Plex fiók szükséges (ingyenes regisztráció a plex.tv-n)", "app_info.prerequisites[0]": "Plex fiók szükséges (ingyenes regisztráció a plex.tv-n)",
"app_info.prerequisites[1]": "Külső HDD a médiafájlok tárolásához", "app_info.prerequisites[1]": "Külső HDD a médiafájlok tárolásához",
"app_info.prerequisites[2]": "Legalább 2 GB szabad RAM (transzkódoláshoz több ajánlott)", "app_info.prerequisites[2]": "Legalább 2 GB szabad RAM (transzkódoláshoz több ajánlott)",
@@ -953,7 +952,7 @@
"deploy_fields[HDD_PATH].description": "A külső merevlemez elérési útja", "deploy_fields[HDD_PATH].description": "A külső merevlemez elérési útja",
"deploy_fields[HDD_PATH].label": "Médiatár útvonal", "deploy_fields[HDD_PATH].label": "Médiatár útvonal",
"deploy_fields[HDD_PATH].placeholder": "/mnt/felhom-drives/hdd_1", "deploy_fields[HDD_PATH].placeholder": "/mnt/felhom-drives/hdd_1",
"deploy_fields[PLEX_CLAIM].description": "Generáld a https://plex.tv/claim oldalon (4 percig érvényes)", "deploy_fields[PLEX_CLAIM].description": "Nem kötelező. Telepítés után az alkalmazás oldalán add meg (https://plex.tv/claim, 4 percig érvényes)",
"deploy_fields[PLEX_CLAIM].label": "Plex Claim Token", "deploy_fields[PLEX_CLAIM].label": "Plex Claim Token",
"deploy_fields[PLEX_CLAIM].placeholder": "claim-xxxxxxxxxxxx", "deploy_fields[PLEX_CLAIM].placeholder": "claim-xxxxxxxxxxxx",
"deploy_fields[SUBDOMAIN].description": "Az alkalmazás aldomainje", "deploy_fields[SUBDOMAIN].description": "Az alkalmazás aldomainje",
@@ -1442,7 +1441,7 @@
"metube": "new app 2026-10-02 (family gate); Hungarian reviewed: informal te, no kerjuk (ASCII scan with a positive control)", "metube": "new app 2026-10-02 (family gate); Hungarian reviewed: informal te, no kerjuk (ASCII scan with a positive control)",
"nzbget": "Usenet downloader, the light client of the pair (R-988); Hungarian written 2026-10-12 and reviewed in this session", "nzbget": "Usenet downloader, the light client of the pair (R-988); Hungarian written 2026-10-12 and reviewed in this session",
"papra": "R-593 (2026-10-05): deliberate Hungarian rewrite, not a translation — AUTH_SECRET carried SUBDOMAIN's sentence 'Az alkalmazás aldomainje' (copy-paste one field too low); the sentence moved to SUBDOMAIN and AUTH_SECRET got its own: 'A bejelentkezéseket aláíró titkos kulcs (automatikusan generált)'", "papra": "R-593 (2026-10-05): deliberate Hungarian rewrite, not a translation — AUTH_SECRET carried SUBDOMAIN's sentence 'Az alkalmazás aldomainje' (copy-paste one field too low); the sentence moved to SUBDOMAIN and AUTH_SECRET got its own: 'A bejelentkezéseket aláíró titkos kulcs (automatikusan generált)'",
"plex": "2026-10-15 (R-1045): first_steps gains the setup-gate step „Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg” (same wording as Sonarr's, with the English twin); the other strings unchanged", "plex": "2026-10-15 (R-1028): the code is asked on the Plex page after the install, not at install — first_steps say so (hu + en twins), the claim field is optional and says so; the step „Kapcsold össze…” dropped (the page's claim does it)",
"qbittorrent": "New app 2026-10-12 (operator ruling: the catalog needs a download client - radarr/sonarr/seerr had none). Hungarian written with the voice the website switched to the same day; English twin complete at 23/23.", "qbittorrent": "New app 2026-10-12 (operator ruling: the catalog needs a download client - radarr/sonarr/seerr had none). Hungarian written with the voice the website switched to the same day; English twin complete at 23/23.",
"radicale": "new app 2026-10-01 through NEW-APP-CHECKLIST.md: te-form, no kérjük; reviewed by CC against the operator rules", "radicale": "new app 2026-10-01 through NEW-APP-CHECKLIST.md: te-form, no kérjük; reviewed by CC against the operator rules",
"sabnzbd": "Usenet downloader, the full client of the pair the operator asked for (R-988); Hungarian written 2026-10-12 and reviewed in this session", "sabnzbd": "Usenet downloader, the full client of the pair the operator asked for (R-988); Hungarian written 2026-10-12 and reviewed in this session",
+6
View File
@@ -19,6 +19,12 @@ resources:
pi_compatible: false pi_compatible: false
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: every drive's media folder, read-only.
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
read_only: true
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- # --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup: backup:
userdata: userdata:
+6
View File
@@ -19,6 +19,12 @@ resources:
pi_compatible: false pi_compatible: false
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: every drive's media folder, read-only.
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
read_only: true
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- # --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup: backup:
userdata: userdata:
+20 -9
View File
@@ -19,6 +19,12 @@ resources:
pi_compatible: false pi_compatible: false
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: every drive's media folder, read-only.
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
read_only: true
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- # --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup: backup:
userdata: userdata:
@@ -41,12 +47,15 @@ deploy_fields:
locked_after_deploy: true locked_after_deploy: true
description: "Az alkalmazás aldomainje" description: "Az alkalmazás aldomainje"
# R-1028: NOT asked at install any more — a code that ran out during the image pull left an unclaimed server. A
# controller >= 0.313.0 asks for it on the Plex page once Plex runs. An older controller still offers the field
# (optional): left empty, the household claims Plex through Plex's own page while the setup gate keeps strangers out.
- env_var: PLEX_CLAIM - env_var: PLEX_CLAIM
label: "Plex Claim Token" label: "Plex Claim Token"
type: text type: text
required: true required: false
placeholder: "claim-xxxxxxxxxxxx" placeholder: "claim-xxxxxxxxxxxx"
description: "Generáld a https://plex.tv/claim oldalon (4 percig érvényes)" description: "Nem kötelező. Telepítés után az alkalmazás oldalán add meg (https://plex.tv/claim, 4 percig érvényes)"
locked_after_deploy: true locked_after_deploy: true
- env_var: HDD_PATH - env_var: HDD_PATH
@@ -65,6 +74,10 @@ deploy_fields:
# header (measured 2026-10-15 on Tester 1; JSON only with `Accept: application/json`), and the probe sends none — # header (measured 2026-10-15 on Tester 1; JSON only with `Accept: application/json`), and the probe sends none —
# so the household's „Kész, beállítottam" opens the gate. # so the household's „Kész, beállítottam" opens the gate.
setup_gate: true setup_gate: true
# No setup_done_probe on purpose (R-1045): a controller >= 0.313.0 asks Plex itself whether it is claimed (/identity with
# Accept: application/json — measured 2026-10-15: before the claim false -> after the claim true) after the claim on the
# app page and before it lets „Kész, beállítottam" open the gate. A probe here would make an OLDER controller, which sends
# no Accept header and reads Plex's XML as „not JSON", refuse the household's press forever.
# --- App info (info page content) --- # --- App info (info page content) ---
app_info: app_info:
@@ -79,9 +92,8 @@ app_info:
- 'Gazdag mobilalkalmazás és Smart TV támogatás' - 'Gazdag mobilalkalmazás és Smart TV támogatás'
first_steps: first_steps:
- 'Generálj egy claim tokent a https://plex.tv/claim oldalon' - 'Telepítés után nyisd meg a Plex oldalát a vezérlőpulton'
- 'Telepítés után nyisd meg a plex.DOMAIN címet' - 'Generálj egy kódot a https://plex.tv/claim oldalon, és add meg ott'
- 'Kapcsold össze a Plex fiókoddat a szerverrel'
- 'Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg' - 'Ha kész, a vezérlőpulton nyomd meg: „Kész, beállítottam” - addig a Plex csak neked nyílik meg'
- 'Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)' - 'Add hozzá a médiatárat (filmek: /media/movies, sorozatok: /media/tv)'
- 'Telepítsd a Plex alkalmazást eszközeidre' - 'Telepítsd a Plex alkalmazást eszközeidre'
@@ -115,9 +127,8 @@ i18n:
- 'Skip intros and end credits (Plex Pass)' - 'Skip intros and end credits (Plex Pass)'
- 'Strong phone apps and Smart TV support' - 'Strong phone apps and Smart TV support'
first_steps: first_steps:
- 'Generate a claim token at https://plex.tv/claim' - 'After the install, open the Plex page on the dashboard'
- 'After the install, open plex.DOMAIN' - 'Get a code at https://plex.tv/claim and enter it there'
- 'Connect your Plex account to the server'
- 'When you are done, press „Done, I set it up” on the dashboard - until then Plex opens only for you' - 'When you are done, press „Done, I set it up” on the dashboard - until then Plex opens only for you'
- 'Add your libraries (films: /media/movies, series: /media/tv)' - 'Add your libraries (films: /media/movies, series: /media/tv)'
- 'Install the Plex app on your devices' - 'Install the Plex app on your devices'
@@ -138,5 +149,5 @@ i18n:
placeholder: '/mnt/felhom-drives/hdd_1' placeholder: '/mnt/felhom-drives/hdd_1'
- env_var: PLEX_CLAIM - env_var: PLEX_CLAIM
label: 'Plex Claim Token' label: 'Plex Claim Token'
description: 'Generate it at https://plex.tv/claim (it is valid for 4 minutes)' description: 'Optional. Enter it on the app page after the install (https://plex.tv/claim, valid for 4 minutes)'
placeholder: 'claim-xxxxxxxxxxxx' placeholder: 'claim-xxxxxxxxxxxx'
+3
View File
@@ -19,6 +19,9 @@ services:
environment: environment:
- TZ=Europe/Budapest - TZ=Europe/Budapest
- PLEX_CLAIM=${PLEX_CLAIM} - PLEX_CLAIM=${PLEX_CLAIM}
# The address plex.tv hands to every app. Without it the server advertises only its container address and the
# public IP on :32400, neither reachable through the tunnel (measured 2026-10-14, felhom.eu 15-media-library.md §6).
- ADVERTISE_IP=https://${SUBDOMAIN}.${DOMAIN}:443/
volumes: volumes:
- plex_config:/config - plex_config:/config
- plex_transcode:/transcode - plex_transcode:/transcode
+6
View File
@@ -29,6 +29,12 @@ resources:
pi_compatible: true pi_compatible: true
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: only media/torrents of every drive (the D9 limit).
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
folder: torrents
# --- Backup classification --- # --- Backup classification ---
backup: backup:
volumes: volumes:
+5
View File
@@ -19,6 +19,11 @@ resources:
pi_compatible: true pi_compatible: true
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: the whole media folder of every drive, read-write (download and library on one mount).
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library: {}
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- # --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup: backup:
userdata: userdata:
+5
View File
@@ -19,6 +19,11 @@ resources:
pi_compatible: true pi_compatible: true
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: the whole media folder of every drive, read-write (download and library on one mount).
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library: {}
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) --- # --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
backup: backup:
userdata: userdata:
+6
View File
@@ -32,6 +32,12 @@ resources:
pi_compatible: true pi_compatible: true
needs_hdd: true needs_hdd: true
# --- Media apps on every drive (controller >= 0.313.0, R-1023; felhom.eu architecture/15-media-library.md §2/§3) ---
# The controller adds one bind per PRESENT drive at the same path: only media/transmission of every drive (the D9 limit).
# A controller that does not know this key ignores it and runs the one-drive line of docker-compose.yml.
media_library:
folder: transmission
# --- Backup classification --- # --- Backup classification ---
backup: backup:
volumes: volumes:
+3 -1
View File
@@ -75,7 +75,9 @@ services:
# The default folders live at the same path as on the box. A fresh config (/defaults: /downloads/complete) and # The default folders live at the same path as on the box. A fresh config (/defaults: /downloads/complete) and
# an install from before 2026-10-14 are moved the same way; a folder the household chose elsewhere is kept. # an install from before 2026-10-14 are moved the same way; a folder the household chose elsewhere is kept.
# Old torrents keep /downloads/... in their own resume data, and the bind below keeps that path alive. # Old torrents keep /downloads/... in their own resume data, and the bind below keeps that path alive.
jq --arg d "$$TR_DL" '.["port-forwarding-enabled"] = false # ONE incomplete folder for every torrent would sit on one drive and make every other drive's download a
# cross-drive copy at completion — off, written here at start (an RPC setting was lost on a power cut, R-1024).
jq --arg d "$$TR_DL" '.["port-forwarding-enabled"] = false | .["incomplete-dir-enabled"] = false
| (.["download-dir"], .["incomplete-dir"]) |= (if startswith("/downloads") then $$d + .[10:] else . end)' "$$CONF" > /tmp/s.json && mv /tmp/s.json "$$CONF" | (.["download-dir"], .["incomplete-dir"]) |= (if startswith("/downloads") then $$d + .[10:] else . end)' "$$CONF" > /tmp/s.json && mv /tmp/s.json "$$CONF"
exec /init exec /init
volumes: volumes: