mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -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
|
|
@ -43,17 +43,14 @@
|
|||
"modules/services/mealie"
|
||||
"modules/services/actualbudget"
|
||||
"modules/services/frigate"
|
||||
"modules/services/homebox"
|
||||
"modules/services/homepage"
|
||||
"modules/services/mqtt"
|
||||
"modules/services/lubelogger"
|
||||
"modules/services/trilium"
|
||||
"modules/services/fail2ban"
|
||||
"modules/services/ntfy-sh"
|
||||
"modules/services/mesh/client.nix"
|
||||
"modules/services/auth-provider"
|
||||
"modules/services/paperless"
|
||||
"modules/services/netbox"
|
||||
"modules/services/matrix"
|
||||
"modules/services/freshrss"
|
||||
"modules/services/forgejo"
|
||||
|
|
|
|||
|
|
@ -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