Files
immich-redaktions-plugin/.env.example
T
Leon Tonhäuser dd60fd6ee6 feat: auto-assign new Immich albums via keyword rules
Auto-assignment rules were only applied when an admin clicked
"Regeln jetzt anwenden". New albums created in Immich therefore
never reached editorials automatically.

- applyAllRules() syncs every active editorial's keywords against the
  full album list in one pass and grants matches as system actor
- in-process scheduler (src/instrumentation.ts) runs the sync every
  AUTO_RULE_SYNC_INTERVAL_SECONDS (default 120s)
- POST /api/cron/album-sync allows external triggers via CRON_SECRET
- overlapping sync runs coalesce to avoid duplicate grants/emails
2026-08-25 01:05:04 +02:00

29 lines
1.1 KiB
Bash

# Portal database (separate from Immich)
DATABASE_URL=postgres://portal:change-me@portal-db:5432/portal
# Better Auth — production public URL. For local dev, set http://localhost:3000 in .env
BETTER_AUTH_SECRET=replace-with-a-long-random-secret
BETTER_AUTH_URL=https://redaktionen.leon-tonhaeuser.de
# Internal Immich API access; never expose these values to browsers
IMMICH_BASE_URL=http://immich-server:2283
IMMICH_API_KEY=replace-with-a-restricted-immich-api-key
# SMTP
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=portal@example.com
SMTP_PASSWORD=replace-with-an-smtp-password
SMTP_FROM=portal@example.com
# Legal pages managed outside the application
LEGAL_IMPRINT_URL=https://leon-tonhaeuser.de/impressum
LEGAL_PRIVACY_URL=https://leon-tonhaeuser.de/datenschutz
LEGAL_TERMS_URL=https://leon-tonhaeuser.de/agb
# Album auto-rule sync: runs automatically every N seconds (default 120).
# AUTO_RULE_SYNC_INTERVAL_SECONDS=120
# Optional bearer token to trigger the sync externally via
# POST /api/cron/album-sync (Authorization: Bearer <CRON_SECRET>).
# CRON_SECRET=replace-with-a-long-random-secret