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