use 429 not 500

This commit is contained in:
Arya 2024-01-10 22:38:09 +05:30
parent d8ac837177
commit e706e54a1c
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -82,8 +82,8 @@ nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{
@rlignore { @rlignore {
not path /css/* /js/* /fonts/* /browserconfig.xml /android-chrome* /favicon* /logo* /lp.svg /robots.txt /safari* /site.webmanifest /pic/* 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} 2r/s 60000 429
rate_limit @rlignore {remote.ip} 30r/m 300000 500 rate_limit @rlignore {remote.ip} 45r/m 300000 429
log { 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. # 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 output file /var/log/caddy/ratelimiters.log