add a minute-based ratelimit as well
This commit is contained in:
parent
fc9c1065b9
commit
bc09fb9101
@ -148,6 +148,7 @@ inv.{{ server_prefix }}.projectsegfau.lt i.{{ server_prefix }}.psf.lt {
|
|||||||
header -Content-Security-Policy
|
header -Content-Security-Policy
|
||||||
@ratelimit not path /videoplayback/* /ggpht/* /vi/* /videoplayback /videojs/* /css/* /js/* /fonts/* /apple-touch-icon.png /favicon-16x16.png /feed/webhook /feed/webhook/*
|
@ratelimit not path /videoplayback/* /ggpht/* /vi/* /videoplayback /videojs/* /css/* /js/* /fonts/* /apple-touch-icon.png /favicon-16x16.png /feed/webhook /feed/webhook/*
|
||||||
rate_limit @ratelimit {remote.ip} 10r/s
|
rate_limit @ratelimit {remote.ip} 10r/s
|
||||||
|
rate_limit @ratelimit {remote.ip} 100r/m
|
||||||
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
|
||||||
|
@ -28,6 +28,7 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt, invidious.projectsegfau.lt, inv.projectseg
|
|||||||
header -Content-Security-Policy
|
header -Content-Security-Policy
|
||||||
@ratelimit not path /videoplayback/* /ggpht/* /vi/* /videoplayback /videojs/* /css/* /js/* /fonts/* /apple-touch-icon.png /favicon-16x16.png /feed/webhook /feed/webhook/*
|
@ratelimit not path /videoplayback/* /ggpht/* /vi/* /videoplayback /videojs/* /css/* /js/* /fonts/* /apple-touch-icon.png /favicon-16x16.png /feed/webhook /feed/webhook/*
|
||||||
rate_limit @ratelimit {remote.ip} 10r/s
|
rate_limit @ratelimit {remote.ip} 10r/s
|
||||||
|
rate_limit @ratelimit {remote.ip} 100r/m
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user