9 lines
313 B
Plaintext
9 lines
313 B
Plaintext
# Include this file once inside nginx `http { ... }` block.
|
|
# Example: include /etc/nginx/conf.d/recipe-rate-limit-http.conf;
|
|
|
|
# Per-client limit for recipe/receipt API requests.
|
|
limit_req_zone $binary_remote_addr zone=recipe_api_per_ip:10m rate=20r/m;
|
|
|
|
# Return 429 for throttled requests.
|
|
limit_req_status 429;
|