Hands-on task
Rate-limit requests
The nginx site (/etc/nginx/sites-enabled/app) currently responds to any stream of requests. Set up rate limiting: about one request per second per address, with a small allowance for bursts — 2–3 requests. When the limit is exceeded, nginx must respond with an error (503), and after a pause serve requests normally again. The site must still serve its page.
- nginx
- limit_req_zone
- limit_req
- burst
- rate limiting