From e36bf25a5ea6630c1ea737d3f61e360a5c4f7280 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 12 Dec 2017 16:39:45 -0500 Subject: [PATCH] nginx: rate limit 1r/s This reduces our rate limiting down to to 1 request per second. --- conf/nginx/rate-limiting.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx/rate-limiting.conf b/conf/nginx/rate-limiting.conf index d7e80c67d..2ffbd320c 100644 --- a/conf/nginx/rate-limiting.conf +++ b/conf/nginx/rate-limiting.conf @@ -9,7 +9,7 @@ map $http_authorization $registry_bucket { default $http_authorization; } -limit_req_zone $proxy_protocol_addr zone=verbs:10m rate=2r/s; -limit_req_zone $registry_bucket zone=repositories:10m rate=2r/s; +limit_req_zone $proxy_protocol_addr zone=verbs:10m rate=1r/s; +limit_req_zone $registry_bucket zone=repositories:10m rate=1r/s; limit_req_status 429; limit_req_log_level warn;