Created
September 10, 2025 21:38
-
-
Save mustardBees/69712d1b7a7c700733ad02bb5bcc620c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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