# API password that clients and admin must use as the API key API_PASSWORD=your_secure_password_here # Configuration persistence file (stores providers, API keys, and custom models) CONFIG_FILE=./data/revolver-config.json # (Optional / Legacy) Gemini API keys for automatic migration on first launch # GEMINI_API_KEYS=key1,key2,key3 # Server configuration PORT=3000 # Logging configuration LOG_DIR=./logs # Rate limit configuration (duration in milliseconds) RATE_LIMIT_DURATION_MS=60000 # Cloudflare Anti-Timeout Configuration # Interval (in ms) to send SSE comment heartbeats during streaming (: keep-alive) # KEEPALIVE_INTERVAL_MS=15000 # Enable chunked whitespace keep-alives for non-streaming requests exceeding delay # ENABLE_NON_STREAMING_KEEPALIVE=true # NON_STREAMING_KEEPALIVE_DELAY_MS=20000 # Candidate timeout per provider attempt before rotating (in ms, default 20s) # CANDIDATE_TIMEOUT_MS=20000 # Streaming Time-To-First-Token (TTFT) timeout before failover (in ms, default 15s) # STREAM_FIRST_TOKEN_TIMEOUT_MS=15000 # Model circuit breaker cooldown duration on 503 / high demand (in ms, default 60s) # MODEL_COOLDOWN_MS=60000 # Max consecutive timeouts per model target before tripping circuit breaker (default 0 when fallback tier exists) # MAX_TARGET_TIMEOUT_RETRIES=0 # Max key retries per model target on 503 high-demand / overload errors before failing over to next tier (default 1 = max 2 keys tried) # MAX_TARGET_OVERLOAD_RETRIES=1 # Disable Gemini Content Moderation (injects HarmBlockThreshold.BLOCK_NONE to prevent safety blocks & proxy errors) # DISABLE_GEMINI_MODERATION=true # Cloudflare Tunnel configuration (for Docker deployment) # Get your tunnel token from: https://dash.cloudflare.com/ CLOUDFLARE_TUNNEL_TOKEN=your_cloudflare_tunnel_token_here