mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-12 07:38:56 -05:00
down some services that arent serving me well
This commit is contained in:
parent
f0a1f3145a
commit
b119932d28
2 changed files with 3 additions and 12 deletions
|
|
@ -3,15 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.etc = {
|
||||
# Define an action that will trigger a Ntfy push notification upon the issue of every new ban
|
||||
"fail2ban/action.d/ntfy.local".text = pkgs.lib.mkDefault (pkgs.lib.mkAfter ''
|
||||
[Definition]
|
||||
norestored = true # Needed to avoid receiving a new notification after every restart
|
||||
actionban = curl -H "Title: <ip> has been banned" -d "<name> jail has banned <ip> from accessing ${config.hostSpec.hostName} after <failures> attempts of attacking the system." https://notify.wanderingcrow.net/Fail2banNotifications
|
||||
'');
|
||||
};
|
||||
}:
|
||||
{
|
||||
# FIXME(TODO): fail2ban notifications sent to mqtt
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
extraPackages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue