# =========================================== # MidOrFeed - Environment Variables # =========================================== # Copy this file to .env and fill in your values # Never commit .env to version control! # =========================================== # Required # =========================================== # PostgreSQL Database URL DATABASE_URL="postgresql://user:password@localhost:5432/midorfeed" # Riot Games API Key (https://developer.riotgames.com/) RIOT_API_KEY="RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # =========================================== # Authentication # =========================================== # JWT Secret for token signing (generate a secure random string) # In development, a default key is used if not set JWT_SECRET="your-super-secret-jwt-key-min-32-chars" # Google OAuth (optional) GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" NEXT_PUBLIC_GOOGLE_CLIENT_ID="" # =========================================== # AI Features (optional) # =========================================== # Anthropic API Key for Claude AI (match analysis, composition reasoning) ANTHROPIC_API_KEY="sk-ant-xxxxxxxxxxxxxxxxxxxxxxxx" # =========================================== # Monitoring & Alerts (optional) # =========================================== # Slack Webhook URL for alerts SLACK_WEBHOOK_URL="" # =========================================== # Application Settings # =========================================== # Node environment NODE_ENV="development" # Public application URL (for SEO, sitemap, etc.) NEXT_PUBLIC_APP_URL="http://localhost:3000" # Default Riot region DEFAULT_RIOT_REGION="euw1" # =========================================== # Timeouts (optional, with defaults) # =========================================== # Database timeout in milliseconds (default: 30000) DB_TIMEOUT_MS="30000" # API timeout in milliseconds (default: 10000) API_TIMEOUT_MS="10000" # =========================================== # Rate Limiting (optional, with defaults) # =========================================== # Auth endpoints: requests per window RATE_LIMIT_AUTH_LIMIT="5" RATE_LIMIT_AUTH_WINDOW_MS="900000" # API endpoints: requests per window RATE_LIMIT_API_LIMIT="100" RATE_LIMIT_API_WINDOW_MS="60000" # Admin endpoints: requests per window RATE_LIMIT_ADMIN_LIMIT="50" RATE_LIMIT_ADMIN_WINDOW_MS="60000" # =========================================== # Cache TTL (optional, in seconds) # =========================================== CACHE_TTL_SHORT="60" CACHE_TTL_MEDIUM="300" CACHE_TTL_LONG="3600" # =========================================== # Request Limits (optional) # =========================================== # Maximum request body size in bytes (default: 1MB) MAX_REQUEST_SIZE="1048576"