Skip to content

v1.4.8

Latest
Compare
Choose a tag to compare
@JubaerHossain JubaerHossain released this 27 Nov 05:02

v1.4.8 Release Notes

Rate Limiting Improvements

New Features

  1. Enhanced IP Detection

    • Added support for multiple proxy headers:
      • Cloudflare's CF-Connecting-IP
      • X-Real-IP
      • X-Forwarded-For
      • Fallback to RemoteAddr
  2. 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
  3. Improved Rate Limit Headers

    • Added standard rate limit headers:
      • X-RateLimit-Limit: Total requests allowed
      • X-RateLimit-Remaining: Remaining requests
      • X-RateLimit-Reset: Unix timestamp when the limit resets
      • Retry-After: Seconds until next request is allowed
  4. Monitoring and Debugging

    • Added debug headers:
      • X-Rate-Limit-IP: Shows detected client IP
      • X-Rate-Limit-Active-IPs: Shows number of active limiters
    • Enhanced logging with UserAgent and Path information

Configuration

Full Changelog: v1.4.7...v1.4.8