# ============================================================================= # EMAIL SERVICE CONFIGURATION # ============================================================================= # Copy this file to .env and update the values for your environment # Generate API keys with: node generate-api-key.js # Email Service Configuration RESEND_API_KEY=re_your_api_key_here FROM_DOMAIN=yaltopia.com FROM_EMAIL=noreply@yaltopia.com # Security Configuration RATE_LIMIT_MAX=20 # Max emails per window RATE_LIMIT_WINDOW_MS=900000 # 15 minutes in milliseconds CORS_ORIGIN=https://api.yaltopia.com # Allowed origin for CORS # Authentication Configuration - Restrict to specific backend only REQUIRE_API_KEY=false # Set to true to require API key authentication ALLOWED_IPS=192.168.1.100 # Replace with your backend server IP address EMAIL_SERVICE_API_KEY=generate-with-node-generate-api-key-js # 64-char hex key JWT_SECRET=generate-with-node-generate-api-key-js # Base64 secret for signing # Application Configuration NODE_ENV=production # development | production PORT=3001 # Port for email service LOG_LEVEL=info # debug | info | warn | error # Company Defaults DEFAULT_COMPANY_NAME=Yaltopia Ticket DEFAULT_COMPANY_LOGO=https://yaltopia.com/logo.png DEFAULT_PRIMARY_COLOR=#f97316 # ============================================================================= # SETUP INSTRUCTIONS: # ============================================================================= # 1. Copy this file: cp .env.example .env # 2. Get Resend API key from: https://resend.com/api-keys # 3. Find your backend IP: curl ifconfig.me # 4. Generate secure keys: node generate-api-key.js # 5. Update ALLOWED_IPS with your backend server IP # 6. Update CORS_ORIGIN with your backend domain # 7. Start service: npm run server:dev # =============================================================================