frankfurter/limit_req.conf
Hakan Ensari d74fefa9c9 Improve docker setup
- Add .dockerignore
- Use version 3
- Move wait_for_it.sh to docker-compose.yml
- Persist db data
- Use nginx-proxy
- Use Letsencrypt in production
- Rate limit in production
2017-11-09 12:37:50 +00:00

4 lines
118 B
Plaintext

limit_req_zone $binary_remote_addr zone=api:10m rate=1r/s;
limit_req_status 429;
limit_req zone=api burst=50 nodelay;