From 511dc1d6b47be62a55e9c95b54594b75e5e46ee9 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Wed, 18 Dec 2024 15:21:41 -0500 Subject: [PATCH] Adjust rate limit for roundup backends (#544) --- salt/bugs/config/nginx.conf.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/bugs/config/nginx.conf.jinja b/salt/bugs/config/nginx.conf.jinja index c501569d..4ae82bc5 100644 --- a/salt/bugs/config/nginx.conf.jinja +++ b/salt/bugs/config/nginx.conf.jinja @@ -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 }} { @@ -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;