v1.4.8 Release Notes
Rate Limiting Improvements
New Features
-
Enhanced IP Detection
- Added support for multiple proxy headers:
- Cloudflare's
CF-Connecting-IP
X-Real-IP
X-Forwarded-For
- Fallback to
RemoteAddr
- Cloudflare's
- Added support for multiple proxy headers:
-
IP Whitelisting and Blacklisting
- Added support for IP whitelisting to bypass rate limits
- Added IP blacklisting to block specific IPs
- Configurable via environment variables:
bash RATE_LIMIT_WHITELIST=1.2.3.4,5.6.7.8 RATE_LIMIT_BLACKLIST=9.10.11.12
-
Improved Rate Limit Headers
- Added standard rate limit headers:
X-RateLimit-Limit
: Total requests allowedX-RateLimit-Remaining
: Remaining requestsX-RateLimit-Reset
: Unix timestamp when the limit resetsRetry-After
: Seconds until next request is allowed
- Added standard rate limit headers:
-
Monitoring and Debugging
- Added debug headers:
X-Rate-Limit-IP
: Shows detected client IPX-Rate-Limit-Active-IPs
: Shows number of active limiters
- Enhanced logging with UserAgent and Path information
- Added debug headers:
Configuration
Full Changelog: v1.4.7...v1.4.8