# Backend Environment Variables Example # Copy this file to .env and update with your values # Application NODE_ENV=production PORT=3001 # Security # Generate with: openssl rand -base64 32 JWT_SECRET=your-very-secure-jwt-secret-at-least-32-characters-long-example123456 # URLs (adjust for your domain) ADMIN_URL=https://photos.example.com FRONTEND_URL=https://photos.example.com BACKEND_URL=https://photos.example.com # Or https://api.photos.example.com if separate # Database Configuration DATABASE_CLIENT=pg DB_HOST=localhost DB_PORT=5432 DB_USER=picpeak DB_PASSWORD=your-secure-database-password-change-this DB_NAME=picpeak # Email Configuration (Examples for common providers) # Gmail example: # SMTP_HOST=smtp.gmail.com # SMTP_PORT=587 # SMTP_SECURE=false # SMTP_USER=your-email@gmail.com # SMTP_PASS=your-app-specific-password # SendGrid example: SMTP_HOST=smtp.sendgrid.net SMTP_PORT=587 SMTP_SECURE=false SMTP_USER=apikey SMTP_PASS=your-sendgrid-api-key EMAIL_FROM=noreply@example.com # Storage Paths # Docker deployment: STORAGE_PATH=/app/storage EVENTS_PATH=/app/storage/events ARCHIVE_PATH=/app/storage/events/archived # Local development: # STORAGE_PATH=./storage # EVENTS_PATH=./storage/events # ARCHIVE_PATH=./storage/events/archived # Analytics Backend Configuration (OPTIONAL) # Used for server-side tracking only # Primary configuration should be done through Admin UI > Settings > Analytics # UMAMI_URL=https://analytics.example.com # UMAMI_WEBSITE_ID=b4d3c2a1-5678-90ab-cdef-1234567890ab # Logging LOG_LEVEL=info