August 2018
Intermediate to advanced
260 pages
5h 48m
English
apt-get install nginx
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;server { location /auth/signin { limit_req zone=mylimit; proxy_pass http://my_upstream; }}
As you can see from the preceding code, rate limiting is implemented with two configuration directives. The limit_req_zone directive defines the parameters for rate limiting. In this example, we're implementing a rate limit, based on the client's IP address, of 10 requests per second. The limit_req ...
Read now
Unlock full access