From 171c73b031e209e7d56fd82182d66e6f7fa854e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erlingur=20=C3=9Eorsteinsson?= Date: Tue, 13 Jun 2023 21:04:15 +0000 Subject: [PATCH] Update rate limit to 10r/s Since nginx is serving up a bunch of images the rate limiter seems to be hitting more than usual and giving the end users 500 errors. This ups the rate to 10 requests per second which should help. --- templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx.conf b/templates/nginx.conf index d26b801..d6aafb7 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -1,4 +1,4 @@ -limit_req_zone $binary_remote_addr zone={{domain}}_ratelimit:10m rate=1r/s; +limit_req_zone $binary_remote_addr zone={{domain}}_ratelimit:10m rate=10r/s; server { listen 80;