diff --git a/templates/nginx/galaxy.j2 b/templates/nginx/galaxy.j2 index d6b738f..76f0be9 100644 --- a/templates/nginx/galaxy.j2 +++ b/templates/nginx/galaxy.j2 @@ -33,7 +33,7 @@ server { location {{ csnt_galaxy_url_prefix }}/ { # Rate limiting - relaxed zone for general traffic - limit_req zone=galaxy_relaxed burst=20 nodelay; + limit_req zone=galaxy_relaxed burst=40 nodelay; # Remove any forwarded headers that clients might have sent proxy_set_header X-Forwarded-For ""; diff --git a/templates/nginx/rate_limit.conf.j2 b/templates/nginx/rate_limit.conf.j2 index 341e227..c3ccb83 100644 --- a/templates/nginx/rate_limit.conf.j2 +++ b/templates/nginx/rate_limit.conf.j2 @@ -32,8 +32,8 @@ map $http_x_api_key:$rate_limit_path_exempt $rate_limit_zone_key { } # Rate limiting zones -limit_req_zone $rate_limit_zone_key zone=galaxy_relaxed:10m rate=8r/s; -limit_req_zone $rate_limit_zone_key zone=galaxy_strict:10m rate=4r/s; +limit_req_zone $rate_limit_zone_key zone=galaxy_relaxed:10m rate=12r/s; +limit_req_zone $rate_limit_zone_key zone=galaxy_strict:10m rate=6r/s; # Return 429 for rate limited requests limit_req_status 429;