60f0a86bd4
gates / gates (push) Successful in 25s
The READ PATH for a second language in `.felhom.yml`. An `i18n: {en: …}` sibling
block inside the same file; `Metadata.For(lang)` merges it FIELD BY FIELD over the
Hungarian, so a missing or blank English field shows the Hungarian one and a
half-translated app is a legal, shippable state.
`For("hu")` is the parsed struct with `I18n` cleared and nothing else — measured
against all 53 real catalog files, copied into `internal/stacks/testdata/catalog/`.
Lists replace whole; every other list is matched by its own key, never by position.
`For` never writes through the receiver: the metadata is the stack manager's, shared
by concurrent requests, and an in-place merge would leak one household's language
into another household's page.
Pages reach catalog copy only through `LocalizeStacks`/`LocalizeStackPtr`/`MetaFor`,
and `TestNoDirectMetaCopyReadOnPages` keeps a named, reasoned allow-list of every
direct `.Meta.<copy>` read in `internal/web` so the NEXT page to read one fails the
suite instead of quietly rendering Hungarian to an English household.
Eight red-proofs. Two of them convicted a hollow TEST rather than the code: a struct
copy shares its slices' backing arrays, so the obvious DeepEqual mutation check
passed a deliberately broken merge; and a one-entry fixture cannot tell key matching
from position matching. Both rewritten, both then seen to fail.
MinAgent: 0.131.0 (unchanged). Older controllers are unaffected — `LoadMetadata`
uses non-strict `yaml.Unmarshal`, so a pre-0.257.0 box drops the whole block.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
103 lines
3.7 KiB
YAML
103 lines
3.7 KiB
YAML
# =============================================================================
|
|
# .felhom.yml — App metadata for felhom-controller
|
|
# =============================================================================
|
|
# Place alongside docker-compose.yml in each stack directory:
|
|
# /opt/docker/stacks/immich/.felhom.yml
|
|
# =============================================================================
|
|
|
|
# --- Display info (shown on dashboard) ---
|
|
display_name: "Immich"
|
|
description: "Fotók és videók kezelése (Google Photos alternatíva)"
|
|
category: "media"
|
|
subdomain: "photos"
|
|
|
|
# --- Asset slug ---
|
|
slug: "immich"
|
|
# catalog_since: the date THIS repo last changed this app's pinned images. Any commit that
|
|
# changes an image: line must set this to the same day (see CLAUDE.md).
|
|
catalog_since: "2026-07-18"
|
|
|
|
# --- Resource hints (displayed on deploy screen) ---
|
|
resources:
|
|
mem_request: "2048M"
|
|
mem_limit: "4096M"
|
|
pi_compatible: false
|
|
needs_hdd: true
|
|
|
|
# --- Backup classification (referential coupling; see felhom.eu documentation/audits/SPIKE-backup-classification-2026-07-14.md) ---
|
|
backup:
|
|
hdd:
|
|
- path: appdata/immich
|
|
class: mandatory # managed upload library — DB-referenced (SQ3: restore-without = broken)
|
|
userdata:
|
|
- path: media/photos
|
|
class: optional # external library, :ro — precious but re-scanned (explicit overrides ro-default)
|
|
|
|
# --- Deploy fields ---
|
|
deploy_fields:
|
|
- env_var: DOMAIN
|
|
label: "Domain"
|
|
type: domain
|
|
description: "A szerver domain neve"
|
|
locked_after_deploy: true
|
|
|
|
- env_var: SUBDOMAIN
|
|
label: "Aldomain"
|
|
type: subdomain
|
|
default: "photos"
|
|
required: true
|
|
locked_after_deploy: true
|
|
description: "Az alkalmazás aldomainje"
|
|
|
|
- env_var: DB_PASSWORD
|
|
label: "Adatbázis jelszó"
|
|
type: secret
|
|
generate: "password:24"
|
|
locked_after_deploy: true
|
|
|
|
- env_var: HDD_PATH
|
|
label: "Adattárolási útvonal"
|
|
type: path
|
|
required: true
|
|
placeholder: "/mnt/felhom-drives/hdd_1"
|
|
description: "A külső merevlemez elérési útja, ahol a fotók és videók tárolódnak"
|
|
locked_after_deploy: true
|
|
|
|
# --- App info (info page content) ---
|
|
app_info:
|
|
tagline: 'Google Photos alternatíva - automatikus fotó mentés és rendszerezés'
|
|
docs_url: 'https://immich.app/docs/overview/introduction'
|
|
|
|
use_cases:
|
|
- 'Fotók és videók automatikus mentése telefonról'
|
|
- 'Arc- és tárgyfelismerés gépi tanulással'
|
|
- 'Térképes megjelenítés helyszín alapján'
|
|
- 'Emlékek és visszatekintések automatikus generálása'
|
|
- 'Albumok létrehozása és megosztása családtagokkal'
|
|
|
|
first_steps:
|
|
- 'Nyisd meg a photos.DOMAIN címet a böngészőben'
|
|
- 'Hozd létre az admin fiókot'
|
|
- 'Telepítsd az Immich alkalmazást a telefonodra (Android/iOS)'
|
|
- 'Állítsd be az automatikus feltöltést az alkalmazásban'
|
|
- 'Hívd meg a családtagokat külön fiókokkal'
|
|
# MOUNT-READY, REGISTRATION PENDING: a megosztott média/photos mappa be van csatolva
|
|
# /external/photos néven (csak olvasható), de az Immich CSAK akkor látja, ha az
|
|
# adminfelületen (Administration → External Libraries) regisztrálod a /external/photos
|
|
# útvonalat. Compose ezt NEM teszi meg automatikusan — ez egy telepítés utáni lépés.
|
|
- 'Külső könyvtár (opcionális): Administration → External Libraries → add /external/photos'
|
|
|
|
prerequisites:
|
|
- 'Külső HDD szükséges a fotók és videók tárolásához'
|
|
- 'Legalább 4 GB szabad RAM ajánlott (gépi tanulás funkciókhoz)'
|
|
- 'x86 processzor szükséges (nem fut Raspberry Pi-n)'
|
|
|
|
# --- Controller-side health probe ---
|
|
healthcheck:
|
|
checks:
|
|
- type: api
|
|
port: 2283
|
|
path: "/api/server/ping"
|
|
expect:
|
|
status: 200
|