I have a global rate limiting in my nginx.conf for both host and IP. However, there is one specific location where I want to ignore those limits, something like this.
limit_req_zone $binary_remote_addr zone=limitip:10m rate=10r/s;
limit_req_zone $host zone=limithost:10m rate=10r/s;
server {
limit_req zone=limitip burst=5 nodelay;
limit_req zone=limithost burst=5 nodelay;
location /whitelisted_location {
/* ignore the server limits */
}
}
Is the best approach to create two new zones with really high values and use them inside the location?