Add fail2ban config for traefik
This commit is contained in:
parent
62868f9906
commit
45eb1526dc
|
@ -1,5 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./fail2ban.nix ];
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
staticConfigOptions = {
|
||||
|
@ -24,4 +25,10 @@
|
|||
};
|
||||
};
|
||||
networking.firewall = { enable = true; allowedTCPPorts = [ 80 443 8080 ]; };
|
||||
services.fail2ban.jails.traefik = ''
|
||||
enabled = true
|
||||
filter = traefik-auth
|
||||
ports = http,https,8080
|
||||
backend = systemd
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue