Is it possible to support multiple values for RealIpHeader?
CloudFlare, for example. uses CF-Connecting-IP (for some reason) and doesn't set X-Real-IP correctly.
While I could use the config to set RealIpHeader to CF-Connecting-IP this would break requests not coming through CloudFlare. Is it possible to set multiple values for tracking client IPs through reverse proxies?
From a quick look at RateLimitConfiguration and IpRateLimitOptions I couldn't see anything that suggested support for multiple headers, but I also might be looking in the wrong place.
Hi @agc93, you can implement your own Resolve Contributor and use it with a custom configuration. Here's a link to the wiki explaining how: https://github.com/stefanprodan/AspNetCoreRateLimit/wiki/Resolve-Contributors
@agc93 did you come right with this? Do you have an example to share so this can be closed and used as a reference for others?
I don't have an examnple to share as I ended up pursuing a different solution with Cloudflare and a reverse proxy for local requests.