server: gitea: enable fail2ban

This commit is contained in:
2023-06-04 09:55:48 +02:00
parent 0b88c894ed
commit 1771fba57b
2 changed files with 7 additions and 3 deletions

View File

@@ -74,8 +74,12 @@
TERMINAL = "alacritty";
EDITOR = "nvim";
VISUAL = "nvim";
etc = {
"etc/fail2ban/filter.d/gitea.conf".source = ../modules/services/server/fail2ban/filter/gitea.conf;
};
etc = {
"fail2ban/filter.d/gitea.conf" = {
source = ../modules/services/server/fail2ban/filter/gitea.conf;
mode = "0444";
};
};
systemPackages = with pkgs; [ # Default packages install system-wide
vim
@@ -121,7 +125,6 @@
findtime = 3600
bantime = 900
action = iptables-allports
filter = gitea
'';
};
};