# 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 # 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://jrccphotos.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"