Remove non helpful comments
Some checks failed
/ dev-shell (push) Successful in 31s
/ rust-packages (push) Successful in 36s
/ check (push) Successful in 1m10s
/ terraform-providers (push) Successful in 31s
/ systems (push) Has been cancelled

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-20 23:03:52 +02:00
parent 9ddab7b706
commit c03a508586
Signed by: khs
GPG key ID: C7D890804F01E9F0

View file

@ -131,9 +131,6 @@ in
services.fail2ban.jails = { services.fail2ban.jails = {
nginx-botsearch = { nginx-botsearch = {
settings = { settings = {
# Block an IP address if it accesses a non-existent
# home directory more than 5 times in 10 minutes,
# since that indicates that it's scanning.
filter = "nginx-botsearch"; filter = "nginx-botsearch";
action = ''${config.services.fail2ban.banaction}[name=HTTP, port="http,https"]''; action = ''${config.services.fail2ban.banaction}[name=HTTP, port="http,https"]'';
logpath = "/var/log/nginx/access.log"; logpath = "/var/log/nginx/access.log";
@ -144,9 +141,6 @@ in
}; };
nginx-bad-request = { nginx-bad-request = {
settings = { settings = {
# Block an IP address if it accesses a non-existent
# home directory more than 5 times in 10 minutes,
# since that indicates that it's scanning.
filter = "nginx-bad-request"; filter = "nginx-bad-request";
action = ''${config.services.fail2ban.banaction}[name=HTTP, port="http,https"]''; action = ''${config.services.fail2ban.banaction}[name=HTTP, port="http,https"]'';
logpath = "/var/log/nginx/access.log"; logpath = "/var/log/nginx/access.log";