Skip to content

Instantly share code, notes, and snippets.

@smly
Created September 21, 2013 02:54
Show Gist options
  • Select an option

  • Save smly/6646723 to your computer and use it in GitHub Desktop.

Select an option

Save smly/6646723 to your computer and use it in GitHub Desktop.
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