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;
|
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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue