Skip to content

Commit

Permalink
feat: increase rate limit to 20r/s
Browse files Browse the repository at this point in the history
  • Loading branch information
yunruu committed Nov 8, 2024
1 parent 4273ba0 commit 39a8f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nginx/templates/local-nginx.conf.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
events {}

http {
limit_req_zone ${D}binary_remote_addr zone=rate_limit_zone:10m rate=10r/s;
limit_req_zone ${D}binary_remote_addr zone=rate_limit_zone:10m rate=20r/s;
limit_req_status 429;

server {
Expand Down
2 changes: 1 addition & 1 deletion nginx/templates/nginx.conf.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
events {}

http {
limit_req_zone ${D}binary_remote_addr zone=rate_limit_zone:10m rate=10r/s;
limit_req_zone ${D}binary_remote_addr zone=rate_limit_zone:10m rate=20r/s;
limit_req_status 429;

server {
Expand Down

0 comments on commit 39a8f57

Please sign in to comment.