# Application Settings APP_ENV=development DEBUG=true SECRET_KEY=your-secret-key-min-32-chars # Database DATABASE_URL=postgresql+asyncpg://user:password@host:port/database # Redis REDIS_URL=redis://localhost:6379/0 # Discord OAuth DISCORD_CLIENT_ID=your-discord-client-id DISCORD_CLIENT_SECRET=your-discord-client-secret DISCORD_REDIRECT_URI=http://localhost:3000/auth/callback # Legacy (optional) DISCORD_SERVER_REDIRECT_URI=http://localhost:8000/api/auth/discord/callback/server # Server-side flow FRONTEND_URL=http://localhost:3000 # Frontend base URL for redirects # Access Control - Discord User Whitelist # Comma-separated list of Discord user IDs allowed to access the system # Examples: # ALLOWED_DISCORD_IDS=123456789012345678,987654321098765432 # Specific users only # ALLOWED_DISCORD_IDS=* # Allow all users (dev only!) # ALLOWED_DISCORD_IDS= # Allow all users (default, not recommended for prod) ALLOWED_DISCORD_IDS= # League APIs SBA_API_URL=https://api.sba.manticorum.com SBA_API_KEY=your-sba-api-key PD_API_URL=https://api.pd.example.com PD_API_KEY=your-pd-api-key # WebSocket WS_HEARTBEAT_INTERVAL=30 WS_CONNECTION_TIMEOUT=60 # CORS CORS_ORIGINS=["http://localhost:3000","http://localhost:3001"] # Game Settings MAX_CONCURRENT_GAMES=20 GAME_IDLE_TIMEOUT=86400