# ============================================ # Environment Configuration Example # Copy this file to .env and fill in your actual values # ============================================ # Server Configuration NODE_ENV=production PORT=3001 # External API Configuration # For Docker: use host.docker.internal to reach services on host machine # For Docker Compose with API in same network: use the service name EXTERNAL_API_URL=http://localhost:6000 # Domain Config (used for CORS) PRODUCTION_DOMAIN=https://sre.pawjob.us # API Security (optional - auto-generates if not set) # Generate with: openssl rand -hex 32 API_SECRET= # IP Whitelist (optional - comma-separated IPs for production) ALLOWED_IPS= # Webhook Configuration (optional - for GitHub auto-deployment) # Generate a secure random string for this WEBHOOK_SECRET= # ============================================ # PM2 Commands: # ============================================ # Start with PM2: # npm run pm2:start # # Other PM2 commands: # npm run pm2:stop - Stop the app # npm run pm2:restart - Restart the app # npm run pm2:reload - Zero-downtime reload # npm run pm2:logs - View logs # npm run pm2:monit - Monitor dashboard # npm run pm2:delete - Remove from PM2 # # Auto-start on reboot: # pm2 startup # pm2 save # ============================================