server: gitea: enable fail2ban

This commit is contained in:
Kabbone 2023-06-04 09:55:48 +02:00
parent 0b88c894ed
commit 1771fba57b
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
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
'';
};
};

View File

@ -27,4 +27,5 @@ in
};
};
users.users.root.initialPassword = "babablup";
system.stateVersion = "23.11";
}