Skip to content

Instantly share code, notes, and snippets.

@mustardBees
Created September 10, 2025 21:38
Show Gist options
  • Save mustardBees/69712d1b7a7c700733ad02bb5bcc620c to your computer and use it in GitHub Desktop.
Save mustardBees/69712d1b7a7c700733ad02bb5bcc620c to your computer and use it in GitHub Desktop.
# Send 429 status for rate limit violations.
limit_req_status 429;
# Apply to product pages only.
location ~ ^/(product|product-category|product-tag)(/|$) {
limit_req zone=perip burst=20 nodelay;
# Use the same backend hand-off as the default location /
proxy_pass $backend_protocol://$backend_host:$backend_port;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment