# ============================================ # PDF to EPUB Converter - Environment Configuration # ============================================ # Copy this content to a file named .env in the backend folder # ============================================ # Environment Mode NODE_ENV=production # Server Configuration PORT=5000 # ============================================ # DATABASE CONFIGURATION - PRODUCTION # ============================================ # Your hosted database credentials DB_HOST=localhost DB_PORT=3306 DB_USER=bylinelm_epub DB_PASSWORD=admin@Byline25 DB_NAME=bylinelm_epub # ============================================ # SECURITY # ============================================ # IMPORTANT: Change this to a secure random string! # Generate one using: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))" JWT_SECRET=CHANGE-THIS-TO-A-SECURE-RANDOM-STRING # ============================================ # API KEYS (Optional - only if using these services) # ============================================ GOOGLE_API_KEY=your-google-api-key-here GEMINI_API_KEY=your-gemini-api-key-here # ============================================ # CORS CONFIGURATION # ============================================ # Update this with your frontend URL # For local development: http://localhost:3000 # For production: https://yourdomain.com CORS_ORIGIN=http://localhost:3000 # ============================================ # FILE UPLOAD SETTINGS # ============================================ MAX_FILE_SIZE=52428800 UPLOAD_DIR=./uploads TEMP_DIR=./temp # ============================================ # NOTES: # ============================================ # 1. Never commit .env file to Git (already in .gitignore) # 2. For local development, use create-env-local.ps1 # 3. To switch environments, use switch-to-production.ps1 or switch-to-local.ps1 # 4. See START_HERE_ENV_SETUP.md for detailed instructions # ============================================