Skip to content

Commit

Permalink
Adjust rate limit for roundup backends (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin authored Dec 18, 2024
1 parent f5d76ee commit 511dc1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/bugs/config/nginx.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ log_format timed_combined_{{ tracker }} '$remote_addr - $remote_user [$time_loca
'"$http_referer" "$http_user_agent" '
'$request_time $upstream_response_time $pipe';

limit_req_zone $binary_remote_addr zone=limit-{{ tracker }}:10m rate=1r/s;
limit_req_zone $binary_remote_addr zone=limit-{{ tracker }}:10m rate=5r/s;


upstream tracker-{{ tracker }} {
Expand Down Expand Up @@ -53,7 +53,7 @@ server {
}

location / {
limit_req zone=limit-{{ tracker }} burst=5 nodelay;
limit_req zone=limit-{{ tracker }} burst=10 nodelay;
proxy_pass http://tracker-{{ tracker }}/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 511dc1d

Please sign in to comment.