add fail2ban

This commit is contained in:
Dennis Wuitz
2023-12-29 20:54:12 +01:00
parent 774bd99550
commit 51e8302c29
4 changed files with 71 additions and 20 deletions

View File

@ -1,7 +1,13 @@
# BIASED
{ config, lib, ... }:
{
config = {
services = lib.mkIf config.services.gitea.enable {
fail2ban = {
enable = true;
};
openssh = {
extraConfig = ''
Match User gitea