# Flight Radar Web App - Environment Configuration # Copy this file to .env and customize for your environment # ============================================================================ # Backend Configuration # ============================================================================ # Server Settings PORT=8000 HOST=0.0.0.0 # Database DATABASE_PATH=/app/data/cache.db # CORS Origins (comma-separated) # Development: http://localhost:5173,http://localhost:3000 # Production: https://yourdomain.com ALLOWED_ORIGINS=http://localhost,http://localhost:80 # ============================================================================ # Frontend Configuration # ============================================================================ # API Base URL (used during build) VITE_API_BASE_URL=http://localhost:8000 # ============================================================================ # Docker Configuration # ============================================================================ # Backend Port (external) BACKEND_PORT=8000 # Frontend Port (external) FRONTEND_PORT=80 # ============================================================================ # Optional: Production Settings # ============================================================================ # Logging Level (DEBUG, INFO, WARNING, ERROR, CRITICAL) LOG_LEVEL=INFO # Rate Limiting (requests per minute) RATE_LIMIT_SCANS=10 RATE_LIMIT_LOGS=30 RATE_LIMIT_AIRPORTS=100 RATE_LIMIT_DEFAULT=60 # Cache Settings CACHE_THRESHOLD_HOURS=24 # ============================================================================ # Notes # ============================================================================ # # Development: # - Use default settings # - CORS allows localhost origins # - Verbose logging enabled # # Production: # - Set proper ALLOWED_ORIGINS # - Use HTTPS if possible # - Adjust rate limits as needed # - Consider using environment-specific .env files #