Fail2ban jails update

This commit is contained in:
Filippo Berto 2023-01-25 22:58:54 +01:00
parent 823904c37c
commit 5c008c6a35
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -60,6 +60,20 @@ with lib; {
fail2ban = {
enable = true;
bantime-increment.enable = true;
jails = {
"nginx-botsearch" = ''
filter = nginx-botsearch
action = nftables-multiport[name=HTTP, port="http,https"]
logpath = /var/log/nginx/error.log*
backend = auto
'';
"nginx-http-auth" = ''
filter = nginx-http-auth
action = nftables-multiport[name=HTTP, port="http,https"]
logpath = /var/log/nginx/error.log*
backend = auto
'';
};
};
nginx = {
enable = true;