0cb315ea88
CI / build (push) Has been cancelled
Event photos can now be opened in Lumenroom, a WebGL2 develop module, from the photo editor's Advanced button. The dashboard signs a short-lived token scoped to one user and event; Lumenroom exchanges it, imports the event's photo list and proxies bytes on demand, so nothing is copied and the temporary catalog expires with the bridge session. Saving in Lumenroom renders the photo and writes it back as the event's edited JPEG, with the advanced recipe kept in event_photos.advanced_edit_json. Lumenroom is vendored under lumenroom/ and built as a second compose service, so one clone and `docker compose up -d --build` deploys both apps. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
106 lines
4.6 KiB
Bash
106 lines
4.6 KiB
Bash
# ---------------------------------------------------------------------------
|
|
# Media Team Hub — environment variables
|
|
# Copy to `.env` for local dev. Never commit real secrets (`.env*` is gitignored).
|
|
# All secrets are server-only — never prefix with NEXT_PUBLIC_.
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Database (Postgres). The compose app/migrate services build their own URL from
|
|
# POSTGRES_*; this value is for host-side CLI commands (`pnpm db:*`, psql).
|
|
DATABASE_URL=postgres://media:media@localhost:5433/media
|
|
|
|
# Compose database credentials. Applied only when the pgdata volume is first
|
|
# initialized; changing them later does not change the role inside Postgres.
|
|
# For production use a URL-safe password (openssl rand -hex 24) and update
|
|
# DATABASE_URL to match.
|
|
POSTGRES_USER=media
|
|
POSTGRES_PASSWORD=media
|
|
POSTGRES_DB=media
|
|
POSTGRES_PORT=5433
|
|
POSTGRES_BIND=127.0.0.1
|
|
|
|
# Host publishing. Set APP_BIND=127.0.0.1 when a reverse proxy is in front.
|
|
APP_PORT=3000
|
|
APP_BIND=0.0.0.0
|
|
|
|
# Auth (magic-link). Generate a secret with: openssl rand -base64 32
|
|
# This value also encrypts the admin-entered Gmail app password: rotating it
|
|
# makes stored SMTP credentials undecryptable (they are then treated as unset).
|
|
NEXTAUTH_URL=http://localhost:3000
|
|
NEXTAUTH_SECRET=change-me-generate-a-random-secret
|
|
|
|
# Canonical origin used in emailed links (sign-in, confirm/decline). Set this
|
|
# to the public URL in any deployment reachable from outside the LAN. Leave
|
|
# empty locally to use the request origin.
|
|
PUBLIC_ORIGIN=
|
|
|
|
# App
|
|
APP_ORIGIN=http://localhost:3000
|
|
CHURCH_TIMEZONE=America/New_York
|
|
|
|
# New sign-ins. false = admin approval required (recommended for anything
|
|
# reachable off-host). true = auto-activate unknown emails (dev/test only).
|
|
AUTO_ACTIVATE_NEW_USERS=false
|
|
|
|
# Console magic-link transport: returns/prints the sign-in URL instead of
|
|
# emailing it. Defaults to on outside production; set true explicitly for the
|
|
# local container stack, which has no mail provider configured out of the box.
|
|
MAGIC_LINK_DEV_TRANSPORT=true
|
|
|
|
# Destructive E2E/test endpoint POST /api/dev/reset. Must be true for the
|
|
# Playwright suite; must stay false in a real deployment.
|
|
ALLOW_DEV_RESET=false
|
|
|
|
# Shared secret for the HTTP cron routes:
|
|
# GET /api/dev/cron/instances|slots|notifications|complete
|
|
# Send it as `Authorization: Bearer <secret>` or `?secret=<secret>`.
|
|
CRON_SECRET=
|
|
|
|
# Email delivery. Precedence at send time:
|
|
# 1. Gmail SMTP configured in Admin → Email delivery (stored encrypted)
|
|
# 2. Postmark, when POSTMARK_SERVER_TOKEN is set
|
|
# 3. Console transport: writes JSON messages under OUTBOX_DIR
|
|
POSTMARK_SERVER_TOKEN=
|
|
POSTMARK_FROM=media@localhost
|
|
|
|
# Console transport directory (a named Docker volume in compose).
|
|
OUTBOX_DIR=/tmp/outbox
|
|
|
|
# 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
|
|
|
|
# Primary storage for original event photos and videos. Mount the export at an
|
|
# OS level on the Docker host, then point MEDIA_ARCHIVE_DIR at that mount:
|
|
# sudo mount -t nfs nas.example.org:/export /mnt/glenloch-media
|
|
# MEDIA_ARCHIVE_DIR=/mnt/glenloch-media docker compose up -d
|
|
# Mount before starting the app: the bind is read at container start. Then set
|
|
# the share name and folder in Settings → Media storage. Photo/video uploads and
|
|
# photo editing stay blocked (with the reason) while a NAS-style share is not a
|
|
# real network mount; 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, e.g. /mnt/glenloch-media mounted from the
|
|
# share. Point this at real storage; the app blocks media writes on a
|
|
# Docker-managed named volume or a NAS-style share that is not a network mount.
|
|
MEDIA_ARCHIVE_DIR=
|
|
# Alternative to the host mount: docker-compose.nfs.yml makes the Docker daemon
|
|
# mount the export as the volume behind /archive. Needs mount permission (fails
|
|
# with "operation not permitted" in an unprivileged LXC).
|
|
NFS_ADDR=
|
|
NFS_EXPORT=
|
|
NFS_VERSION=4
|
|
|
|
# Advanced editor bridge (optional). LUMENROOM_URL is the base URL of the
|
|
# separate Lumenroom deployment, e.g. http://edit.local:8787. BRIDGE_SECRET is a
|
|
# long random string shared with that deployment; without both the "Advanced"
|
|
# button reports that the editor is not configured.
|
|
LUMENROOM_URL=
|
|
BRIDGE_SECRET=
|
|
|
|
# Observability (declared; no Sentry integration is wired yet)
|
|
SENTRY_DSN=
|