add ratelimiting finally

This commit is contained in:
Arya 2023-09-03 22:38:31 +05:30
parent dbf7351e87
commit 5fba9fb594
Signed by: arya
GPG Key ID: 842D12BDA50DF120
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ lbry.{{ server_prefix }}.projectsegfau.lt lbry.projectsegfau.lt {
nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{{ server_prefix }}.psf.lt {
import def
import banips
route / {
rate_limit {remote.ip} 2r/s 60000 500
rate_limit {remote.ip} 30r/m 300000 500
}
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/nitter.log