Files
apocapoc-api/.env.example
T
david f37c1ac19b Improve email verification flow and error handling
- Send verification email before creating user to prevent orphaned accounts
- Detect SMTP authentication errors and fail fast without retries
- Add field-level validation errors for better frontend UX
- Configure docker-compose with explicit environment variables
- Document dollar sign escaping in .env.example (use $$)
- Implement welcome email on successful verification
- Clean up unnecessary comments
2025-11-28 11:32:51 +01:00

28 lines
568 B
Bash

DB_PATH=./data/apocapoc.db
PORT=8080
APP_URL=http://localhost:8080
JWT_SECRET=change-me-in-production
JWT_EXPIRY=1h
REFRESH_TOKEN_EXPIRY=7d
DEFAULT_TIMEZONE=UTC
# Email Configuration (optional - required for email features)
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
# Note: Escape $ signs with $$ (e.g., pa$word becomes pa$$word)
SMTP_PASSWORD=
SMTP_FROM=noreply@example.com
# Application Branding (optional - override support email if needed)
SUPPORT_EMAIL=contact@apocapoc.app
# Email Features
SEND_WELCOME_EMAIL=false
# Registration Control
REGISTRATION_MODE=open