# Server
NODE_ENV=development
PORT=3001
# Comma-separated list of allowed frontend origins (or * for any)
CORS_ORIGIN=http://localhost:5173,http://localhost:3000,https://laciacademy.com,https://www.laciacademy.com

# Resend API
RESEND_API_KEY=re_jeXy1R4p_C3RMmZ2QBr5waG1vhYFdBYZG
# Must use a verified domain in Resend (or onboarding@resend.dev for initial testing)
RESEND_FROM_EMAIL=LACI <support@laciacademy.com>
# Internal recipient(s) for enquiry notifications (comma-separated for multiple)
LACI_TEAM_EMAIL=info@laciacademy.com

# Email template branding
LACI_LOGO_URL=https://laciacademy.com/images/laci-logo.png
# Optional footer link
LACI_SITE_URL=https://laciacademy.com

# Outbound Resend rate limiter & retries (Free tier: 10 req/s, 100/day, 3000/month)
# Default 2 req/s stays safely within Resend limits and prevents burst 429s
RESEND_MAX_RPS=2
RESEND_MAX_RETRIES=3
RESEND_RETRY_BASE_MS=500
RESEND_REQUEST_TIMEOUT_MS=10000
RESEND_DAILY_QUOTA_LIMIT=100
RESEND_MONTHLY_QUOTA_LIMIT=3000

# Inbound HTTP rate limiter (per IP) to protect free-tier email quota
INBOUND_RATE_LIMIT_WINDOW_MS=900000
INBOUND_RATE_LIMIT_MAX=10
