server: gitea: enable fail2ban
This commit is contained in:
parent
0b88c894ed
commit
1771fba57b
@ -74,8 +74,12 @@
|
|||||||
TERMINAL = "alacritty";
|
TERMINAL = "alacritty";
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "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
|
systemPackages = with pkgs; [ # Default packages install system-wide
|
||||||
vim
|
vim
|
||||||
@ -121,7 +125,6 @@
|
|||||||
findtime = 3600
|
findtime = 3600
|
||||||
bantime = 900
|
bantime = 900
|
||||||
action = iptables-allports
|
action = iptables-allports
|
||||||
filter = gitea
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -27,4 +27,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
users.users.root.initialPassword = "babablup";
|
users.users.root.initialPassword = "babablup";
|
||||||
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user