Files
punimtag/viewer-frontend/.env.example
T
ilia c64a97d147
CI / skip-ci-check (pull_request) Successful in 29s
CI / python-lint (pull_request) Successful in 31s
CI / docker-ci (pull_request) Successful in 32s
CI / secret-scan (pull_request) Successful in 37s
CI / e2e (pull_request) Successful in 4m32s
CI / viewer-unit (pull_request) Successful in 4m42s
CI / admin-unit (pull_request) Successful in 5m6s
Add person email/phone, approve bulk select, and pending-queue digest
Capture optional contact fields on identify/approve, add Select All and
Approve Next 10 on User Identified Faces, and email admins when the
pending queue grows (ADMIN_NOTIFY_EMAIL via existing noreply SMTP).
2026-08-04 12:20:39 -04:00

58 lines
2.0 KiB
Bash

# Viewer frontend env (copy to ".env" and edit values)
# Prisma DB URLs (note: no "+psycopg2" here)
DATABASE_URL=postgresql://punimtag:CHANGE_ME@127.0.0.1:5432/punimtag
DATABASE_URL_AUTH=postgresql://punimtag_auth:CHANGE_ME@127.0.0.1:5432/punimtag_auth
# Write-capable database connection (optional; falls back to DATABASE_URL if not set).
# Recommended for production: a separate write user.
# DATABASE_URL_WRITE=postgresql://punimtag_write:CHANGE_ME@127.0.0.1:5432/punimtag
# FastAPI mount URL for server-side proxies (thumbnails, web-playback)—no trailing slash.
# Local: origin only (helper adds /api/v1/...).
BACKEND_BASE_URL=http://127.0.0.1:8000
# Production (public URL through your reverse proxy), e.g.:
# BACKEND_BASE_URL=https://example.org/punim-api
# Same machine as Next: http://127.0.0.1:8000 is also valid.
# Production subpath for the Next app (no trailing slash). Local: leave unset.
# NEXT_BASE_PATH=/punim-viewer
# NextAuth
NEXTAUTH_URL=http://127.0.0.1:3001
NEXTAUTH_SECRET=CHANGE_ME_TO_A_LONG_RANDOM_STRING
AUTH_URL=http://127.0.0.1:3001
# Email provider (smtp or resend)
EMAIL_PROVIDER=smtp
# SMTP (primary)
SMTP_HOST=mail.your-domain.com
SMTP_PORT=465
SMTP_SECURE=true
SMTP_USER=mailer@your-domain.com
SMTP_PASS=CHANGE_ME
SMTP_FROM_EMAIL=noreply@your-domain.com
SMTP_FROM_NAME=PunimTag
SMTP_REPLY_TO=support@your-domain.com
# Resend (fallback)
RESEND_API_KEY=CHANGE_ME_secret-key
RESEND_FROM_EMAIL="onboarding@resend.dev"
RESEND_FROM_NAME=PunimTag
RESEND_REPLY_TO=support@your-domain.com
UPLOAD_DIR="/mnt/db-server-uploads/pending-photos"
# Admin digest when pending face-identifications queue grows (optional).
# Uses the same SMTP/Resend transport as auth mail. Leave unset to disable.
# ADMIN_NOTIFY_EMAIL=you@example.com
# PENDING_QUEUE_DIGEST_THRESHOLD=1
# PENDING_QUEUE_DIGEST_COOLDOWN_MINUTES=60
# ADMIN_APP_URL=https://punimtag.example.com
# PENDING_QUEUE_DIGEST_STATE_PATH=/var/lib/punimtag/pending-queue-digest-state.json
# Site Configuration
NEXT_PUBLIC_SITE_NAME="PunimTag Photo Viewer"
NEXT_PUBLIC_SITE_DESCRIPTION="Family Photo Gallery"