fix(baldur): fail2ban nginx configuration

This commit is contained in:
Filippo Berto 2025-10-16 15:08:02 +02:00
parent 5e25b6432e
commit 3cb057a31a
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC

View file

@ -51,18 +51,22 @@
enable = true; enable = true;
bantime-increment.enable = true; bantime-increment.enable = true;
jails = { jails = {
"nginx-botsearch" = '' "nginx-botsearch" = {
filter = nginx-botsearch settings = {
action = nftables-multiport[name=HTTP, port="http,https"] filter = "nginx-botsearch";
logpath = /var/log/nginx/error.log* action = ''nftables-multiport[name=HTTP, port="http,https"]'';
backend = auto logpath = "/var/log/nginx/error.log*";
''; backend = "auto";
"nginx-http-auth" = '' };
filter = nginx-http-auth };
action = nftables-multiport[name=HTTP, port="http,https"] "nginx-http-auth" = {
logpath = /var/log/nginx/error.log* settings = {
backend = auto filter = "nginx-http-auth";
''; action = ''nftables-multiport[name=HTTP, port="http,https"]'';
logpath = "/var/log/nginx/error.log*";
backend = "auto";
};
};
}; };
}; };
nginx = { nginx = {