Some checks failed
CI / skip-ci-check (pull_request) Successful in 29s
CI / lint-and-type-check (pull_request) Has been cancelled
CI / python-lint (pull_request) Has been cancelled
CI / test-backend (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / secret-scanning (pull_request) Has been cancelled
CI / dependency-scan (pull_request) Has been cancelled
CI / sast-scan (pull_request) Has been cancelled
CI / workflow-summary (pull_request) Has been cancelled
- Added support for sending emails using SMTP configuration or Resend API as a fallback. - Updated environment variables in .env_example for SMTP settings. - Enhanced email confirmation process with improved error handling and fallback logic. - Introduced a test script to validate email sending configuration and functionality.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
# Database Configuration
|
|
# Read-only database connection (for reading photos, faces, people, tags)
|
|
DATABASE_URL="postgresql://viewer_readonly:password@localhost:5432/punimtag"
|
|
|
|
# Write-capable database connection (for user registration, pending identifications)
|
|
# If not set, will fall back to DATABASE_URL
|
|
# Option 1: Use the same user (after granting write permissions)
|
|
# DATABASE_URL_WRITE="postgresql://viewer_readonly:password@localhost:5432/punimtag"
|
|
# Option 2: Use a separate write user (recommended)
|
|
DATABASE_URL_WRITE="postgresql://viewer_write:password@localhost:5432/punimtag"
|
|
|
|
# NextAuth Configuration
|
|
# Generate a secure secret using: openssl rand -base64 32
|
|
NEXTAUTH_SECRET="your-secret-key-here-generate-with-openssl-rand-base64-32"
|
|
NEXTAUTH_URL="http://localhost: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="your-mailbox-password"
|
|
SMTP_FROM_EMAIL="noreply@your-domain.com"
|
|
SMTP_FROM_NAME="PunimTag Viewer"
|
|
SMTP_REPLY_TO="support@your-domain.com"
|
|
|
|
# Resend (fallback)
|
|
RESEND_API_KEY="re_xxx"
|
|
RESEND_FROM_EMAIL="onboarding@resend.dev"
|
|
RESEND_FROM_NAME="PunimTag Viewer"
|
|
RESEND_REPLY_TO="support@your-domain.com"
|
|
|
|
# Site Configuration
|
|
NEXT_PUBLIC_SITE_NAME="PunimTag Photo Viewer"
|
|
NEXT_PUBLIC_SITE_DESCRIPTION="Family Photo Gallery"
|