Files
domandClaude Opus 5.5 ed105fbff8 Prepare legacy migration for the portal cutover
- detection from legacy category only for scores >= 0.5, without ''/none
- category_label + view detection_labeled unify ICU and legacy labels
- schema/003 + migrate_legacy --dedupe removes Gundi twins of legacy images
  (same imei, same size, <= 10 min), archived in image_superseded
- migrate_legacy --plan: read-only preview of the migration
- Gundi S3 prefix icu/gundi-test/ -> icu/gundi/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:01:17 +02:00

74 lines
2.9 KiB
YAML

# config.yaml - Nicht-geheime Konfiguration (App-Tunables + oeffentliche Endpunkte).
#
# WICHTIG: Hier gehoeren KEINE Zugangsdaten hinein.
# Secrets kommen ausschliesslich aus Umgebungsvariablen (.env):
# S3_ACCESS_KEY, S3_SECRET_KEY, PG_DSN, DEERMAPPER_API_KEY
# (optional koennen auch S3_ENDPOINT / S3_BUCKET / DEERMAPPER_API_URL per ENV
# ueberschrieben werden.)
s3:
endpoint: "https://fsn1.your-objectstorage.com/"
bucket: "trapper-meles"
# access_key / secret_key -> via ENV (.env): S3_ACCESS_KEY / S3_SECRET_KEY
postgres: {}
# dsn -> via ENV (.env): PG_DSN (inkl. ?sslmode=require)
deermapper-api:
base_url: "https://webapp.deermapper.net/api/icu"
# apiKey -> via ENV (.env): DEERMAPPER_API_KEY
app:
entrance_prefix: "icu/entrance/"
processed_prefix: "icu/processed/"
thumb_prefix: "icu/thumbnails/"
min_age_seconds: 90
poll_seconds: 30
# OCR crop tunables (defaults are usually fine)
ocr_crop_w_frac: 0.63
ocr_crop_h_frac: 0.05
thumb_max: 512
exiftool_timeout_seconds: 15
job_sleep_seconds: 0.0
parallel_workers: 6
s3_max_pool_connections: 48
# Optional processing switches:
# - false => image still gets moved + thumbnail, and backfill flag is set in import_job
enable_ocr: true
enable_exif: true
enable_deermapper_api: false
deermapper_api_timeout_seconds: 20
deermapper_api_image_field: "image"
# Robustheit (nur Poller): S3-Timeouts/Retries, Backoff bei Stoerungen, Lebenszeichen
s3_connect_timeout_seconds: 10
s3_read_timeout_seconds: 30
s3_retry_mode: "standard" # standard | adaptive | legacy
s3_max_attempts: 4 # inkl. erstem Versuch
pg_connect_timeout_seconds: 10
backoff_initial_seconds: 5 # 5 s, 10 s, 20 s ... nach fehlgeschlagenem Zyklus
backoff_max_seconds: 300 # hoechstens 5 min; Reset nach erfolgreichem Zyklus
heartbeat_seconds: 300 # [HEARTBEAT]-Logzeile mit Zaehlern
# Gundi-v2-Push-Empfaenger (Service gundi-receiver).
# api key -> via ENV (.env): GUNDI_API_KEY (min. 24 Zeichen)
gundi:
enabled: true
bind_host: "0.0.0.0" # im Container; nach aussen nur 127.0.0.1:8090 (compose)
bind_port: 8090
inbox_prefix: "icu/gundi/inbox/"
processed_prefix: "icu/gundi/processed/" # Portal liest den Schluessel aus image.processed_key
thumb_prefix: "icu/gundi/thumbnails/" # Portal liest den Schluessel aus image.thumbnail_key
workers: 4
ocr_workers: 2
max_request_bytes: 33554432
abandon_after_hours: 24
sweep_seconds: 60
stale_after_seconds: 300
max_attempts: 3
# S3-Ausfall-Robustheit (siehe README): Upload-Request scheitert schnell mit 503 + Retry-After;
# S3-/DB-Stoerungen zaehlen nicht gegen max_attempts (nur Datenfehler).
upload_connect_timeout_seconds: 5
upload_read_timeout_seconds: 30
upload_max_attempts: 2 # inkl. erstem Versuch
alarm_after_seconds: 1800 # [GUNDI][ALARM], wenn Eintraege laenger haengen