From e706e54a1c8f7aeb7e7196ae2bf0000709eaecdc Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 10 Jan 2024 22:38:09 +0530 Subject: [PATCH] use 429 not 500 --- privfrontends/templates/Caddyfile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index c52cfb9..fd6b407 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -82,8 +82,8 @@ nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{ @rlignore { not path /css/* /js/* /fonts/* /browserconfig.xml /android-chrome* /favicon* /logo* /lp.svg /robots.txt /safari* /site.webmanifest /pic/* } - rate_limit @rlignore {remote.ip} 2r/s 60000 500 - rate_limit @rlignore {remote.ip} 30r/m 300000 500 + rate_limit @rlignore {remote.ip} 2r/s 60000 429 + rate_limit @rlignore {remote.ip} 45r/m 300000 429 log { # This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date. output file /var/log/caddy/ratelimiters.log