nixos/shared-setups/server/crowdsec: update config

This commit is contained in:
Gabriel Arazas 2024-09-18 09:52:48 +08:00
parent abfa06a0c3
commit 9705646f30
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -17,7 +17,7 @@ in
};
};
plugins = {
notificationPlugins = {
http = {
settings = {
type = "http";
@ -25,6 +25,16 @@ in
};
};
};
dataSources = {
ssh = lib.mkIf config.services.sshd.enable {
source = "journalctl";
journalctl_filter = [
"_SYSTEMD_UNIT=ssh.service"
];
labels.type = "syslog";
};
};
};
};
}