From 8c1a0e8e0df3a2aff1c6b94a510a733beb8aa5e8 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 10 Jan 2024 19:17:06 +0530 Subject: [PATCH] output to ratelimiters.log for nitter and libreddit --- privfrontends/templates/Caddyfile.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index 6407b2e..2062d4b 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -79,7 +79,7 @@ nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{ import banips 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 + output file /var/log/caddy/ratelimiters.log format json } header { @@ -94,6 +94,11 @@ nitter.{{ server_prefix }}.projectsegfau.lt nitter.projectsegfau.lt n.psf.lt n.{ libreddit.{{ server_prefix }}.projectsegfau.lt libreddit.projectsegfau.lt lr.psf.lt lr.{{ server_prefix }}.psf.lt { reverse_proxy :6464 import def + 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 + format json + } import torloc libreddit import i2ploc pjsfkref7g66mji45kyccqnn5hmjtjp3cfodozabpyplj2rmv5sa.b32.i2p }