This commit is contained in:
mjallen18
2025-10-09 14:53:19 -05:00
parent 8677ca747a
commit ef22231dd7
13 changed files with 311 additions and 271 deletions

View File

@@ -74,8 +74,8 @@
crowdsec = {
enable = true;
port = 9898;
apiAddress = "10.0.1.3";
port = 8181;
apiAddress = "0.0.0.0";
apiKey = config.sops.secrets."jallen-nas/crowdsec-capi".path;
dataDir = "/media/nas/main/nix-app-data/crowdsec";
};

View File

@@ -10,7 +10,7 @@
...
}:
let
inherit (lib.${namespace}) enabled disabled;
inherit (lib.${namespace}) enabled;
in
{
imports = [
@@ -150,6 +150,7 @@ in
8192
3000
2222
8181
];
allowedUDPPorts = config.${namespace}.network.firewall.allowedTCPPorts;
};

View File

@@ -100,6 +100,8 @@ in
"jallen-nas/crowdsec-capi" = {
sopsFile = defaultSops;
owner = "crowdsec";
group = "crowdsec";
restartUnits = [ "crowdsec.service" ];
};