banned ips for nitter

This commit is contained in:
Arya 2023-09-03 21:30:20 +05:30
parent f6c8dbc3bc
commit 90914af629
Signed by: arya
GPG Key ID: 842D12BDA50DF120
1 changed files with 4 additions and 2 deletions

View File

@ -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