fix ratelmiits
This commit is contained in:
parent
5fba9fb594
commit
130efe41f0
@ -2,6 +2,7 @@
|
|||||||
log {
|
log {
|
||||||
output discard
|
output discard
|
||||||
}
|
}
|
||||||
|
order rate_limit before basicauth
|
||||||
}
|
}
|
||||||
|
|
||||||
(tor) {
|
(tor) {
|
||||||
@ -81,10 +82,8 @@ lbry.{{ server_prefix }}.projectsegfau.lt lbry.projectsegfau.lt {
|
|||||||
nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{{ server_prefix }}.psf.lt {
|
nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{{ server_prefix }}.psf.lt {
|
||||||
import def
|
import def
|
||||||
import banips
|
import banips
|
||||||
route / {
|
|
||||||
rate_limit {remote.ip} 2r/s 60000 500
|
rate_limit {remote.ip} 2r/s 60000 500
|
||||||
rate_limit {remote.ip} 30r/m 300000 500
|
rate_limit {remote.ip} 30r/m 300000 500
|
||||||
}
|
|
||||||
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/nitter.log
|
output file /var/log/caddy/nitter.log
|
||||||
|
Loading…
Reference in New Issue
Block a user