Enable rate limiting
F5 NGINX as a Service for Azure (NGINXaaS) supports rate limiting using the ngx_http_limit_req_module module to limit the processing rate of requests. For more information on rate limiting with NGINX, see NGINX Limiting Access to Proxied HTTP Resources and Rate Limiting with NGINX and NGINX Plus.
Configuring basic rate limiting
http {
#...
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s;
server {
#...
location /login/ {
limit_req zone=mylimit;
}
}
Note:
As a prerequisite to using thesync
parameter withlimit_req_zone
directive for rate limiting, enable Runtime State Sharing with NGINXaaS for Azure.
Last modified June 4, 2024