mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
crowdsec
This commit is contained in:
parent
4eb7bbe67c
commit
d04665107f
1 changed files with 15 additions and 2 deletions
|
|
@ -28,8 +28,17 @@
|
|||
};
|
||||
|
||||
settings = {
|
||||
general = {
|
||||
api.server.enable = true;
|
||||
common = {
|
||||
log_media = "stdout";
|
||||
};
|
||||
api = {
|
||||
client = {
|
||||
credentials_path = "/var/lib/crowdsec/lapi-credentials.yaml";
|
||||
};
|
||||
server = {
|
||||
enable = true;
|
||||
listen_uri = "127.0.0.1:8080";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -59,4 +68,8 @@
|
|||
};
|
||||
|
||||
users.users.crowdsec.extraGroups = [ "systemd-journal" ];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/crowdsec 0750 crowdsec crowdsec -"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue