Adding rate limiting rules to api.justyy.com

in #steem4 days ago

I've added some rate limiting rules to api.justyy.com

  • limit_req_zone $binary_remote_addr zone=perip:10m rate=10r/s;
  • limit_req zone=perip burst=20 nodelay;
  • limit_req_status 429;

Explanation

Client IP
   ↓
limit_req_zone   ← defines the rule (per IP, 10r/s)
   ↓
limit_req        ← enforces it (+ burst behavior)
   ↓
limit_req_status ← tells client what error to expect

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png

Sort:  

Great post! Featured in the hot section by @punicwax.