fix(baldur): fail2ban nginx configuration
This commit is contained in:
parent
5e25b6432e
commit
3cb057a31a
1 changed files with 16 additions and 12 deletions
|
|
@ -51,18 +51,22 @@
|
|||
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-botsearch" = {
|
||||
settings = {
|
||||
filter = "nginx-botsearch";
|
||||
action = ''nftables-multiport[name=HTTP, port="http,https"]'';
|
||||
logpath = "/var/log/nginx/error.log*";
|
||||
backend = "auto";
|
||||
};
|
||||
};
|
||||
"nginx-http-auth" = {
|
||||
settings = {
|
||||
filter = "nginx-http-auth";
|
||||
action = ''nftables-multiport[name=HTTP, port="http,https"]'';
|
||||
logpath = "/var/log/nginx/error.log*";
|
||||
backend = "auto";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nginx = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue