crowdsec
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -100,6 +100,8 @@ in
|
||||
|
||||
"jallen-nas/crowdsec-capi" = {
|
||||
sopsFile = defaultSops;
|
||||
owner = "crowdsec";
|
||||
group = "crowdsec";
|
||||
restartUnits = [ "crowdsec.service" ];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user