mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-24 20:15:15 +01:00
cfbb4ac4ac
I'm moving my company's server to a private location now that I have sold the domain. While prepping for this, I've done some cleanup and also threw in changes I had lingering on my hard drive. - Run a single database query instead of two - Fold the gem into the app and use Ox instead of REXML - Simplify error handling logic - Relax throttling
4 lines
120 B
Plaintext
4 lines
120 B
Plaintext
limit_req_zone $binary_remote_addr zone=api:10m rate=50r/s;
|
|
limit_req_status 429;
|
|
limit_req zone=api burst=500 nodelay;
|