nixos/services/fail2ban/traefik.nix

18 lines
321 B
Nix
Raw Normal View History

{...}: {
imports = [./default.nix];
services.fail2ban.jails = {
traefik-http = ''
enabled = true
filter = traefik-auth
ports = http,https,2222
backend = systemd
'';
traefik-ssh = ''
enabled = true
filter = sshd
ports = 2222
backend = systemd
'';
};
}