feat(media): primary media storage, growth goals, retention and delivery tools
CI / build (push) Has been cancelled

Event photos and videos are now stored only on the NFS/local share named in
Settings -> Media storage. Uploads, photo editing, video processing and the
per-event filing step refuse to run until that share is configured and
writable, so nothing is silently written inside the container. Video
originals, renditions, posters and sidecars share one folder on the share.

Also adds volunteer growth goals with a mentor queue, an admin retention and
storage sweep with a cron entry point, cached gallery thumbnails with
per-folder ZIP downloads, a server-rendered booth-sheet PDF, and in-app
confirm/release for every upcoming assignment.

Service reminders now ignore the one-off event reminder rule, which had been
queueing an extra bogus reminder for each published service.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-20 23:21:34 +00:00
parent cb5976edb2
commit f7a0c8618f
68 changed files with 3237 additions and 297 deletions
+13 -6
View File
@@ -65,18 +65,25 @@ POSTMARK_FROM=media@localhost
# Console transport directory (a named Docker volume in compose).
OUTBOX_DIR=/tmp/outbox
# Training attachments (metadata in Postgres, bytes on disk; max 25 MB each).
# Training attachments only (metadata in Postgres, bytes on disk; max 25 MB
# each). Event photos and videos are NOT stored here; they live on the media
# storage share below.
UPLOAD_DIR=/tmp/uploads
# NFS archive. Mount the export on the Docker host, then point
# MEDIA_ARCHIVE_DIR at that host mount when starting compose:
# Primary storage for original event photos and videos. Mount the NFS export
# (or any local directory) on the Docker host, then point MEDIA_ARCHIVE_DIR at
# that host mount when starting compose:
# MEDIA_ARCHIVE_DIR=/mnt/nfs/glenloch docker compose up -d
# The app always writes to /archive inside the container; admins can change the
# archive subfolder in Settings → Photo archive (NFS).
# Then set the share name and folder in Settings → Media storage. Photo/video
# uploads and photo editing stay disabled until that check passes; the app never
# writes event media inside the container.
ARCHIVE_DIR=/archive
ARCHIVE_FOLDER=Glenloch Media
# Human-readable share, e.g. nas.local:/volume1/church-media or /mnt/media.
# Required in app settings (Settings → Media storage); this seeds the default.
NFS_SHARE=
# Host path bind-mounted at /archive. Leave empty to use the archive-data volume.
# Host path bind-mounted at /archive. Point this at real storage; the app blocks
# media writes on a Docker-managed named volume.
MEDIA_ARCHIVE_DIR=
# Observability (declared; no Sentry integration is wired yet)