From 90914af6293b0e06475fc6765da3bd5a4d1763d1 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sun, 3 Sep 2023 21:30:20 +0530 Subject: [PATCH] banned ips for nitter --- privfrontends/templates/Caddyfile.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/privfrontends/templates/Caddyfile.j2 b/privfrontends/templates/Caddyfile.j2 index 9481881..772efd2 100644 --- a/privfrontends/templates/Caddyfile.j2 +++ b/privfrontends/templates/Caddyfile.j2 @@ -57,6 +57,9 @@ import acmedns {% endif %} } + +import ./*.Caddyfile + {{ inventory_hostname }}.projectsegfau.lt {% if inventory_hostname == 'eu' %} pizza1.projectsegfau.lt {% endif %} {% if inventory_hostname == 'core' %} soleil.projectsegfau.lt {% endif %} { redir https://wiki.projectsegfau.lt/index.php?title={{ wiki_page }} } @@ -77,6 +80,7 @@ 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 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 @@ -296,5 +300,3 @@ pi.{{ server_prefix }}.psf.lt pi.psf.lt { respond @badbots "Access to this route denied" 403 } {% endif %} - -import ./*.Caddyfile