Created
September 21, 2013 02:54
-
-
Save smly/6646723 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
| events { | |
| } | |
| http { | |
| limit_req_zone $binary_remote_addr zone=nobid:1m rate=100r/s; | |
| server { | |
| listen 8080; | |
| location /bid { | |
| limit_req zone=nobid nodelay; | |
| error_page 503 =204 /nobid; | |
| proxy_pass http://127.0.0.1:80; | |
| } | |
| location /nobid { | |
| return 204; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment