From 22a856d2a4ca82796bc4e2893951e45a0a9f8d45 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 14 May 2026 14:25:03 +0200 Subject: [PATCH] bump the nginx rate limits I have occasionally seen 429 on the tool panel --- templates/nginx/galaxy.j2 | 2 +- templates/nginx/rate_limit.conf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;