mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
nixos/shared-setups/server/crowdsec: update config
This commit is contained in:
parent
abfa06a0c3
commit
9705646f30
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user