crowdsec
Example
{
crowdsec = {
enable = true;
enableGrafanaDashboard = true;
enablePrometheusExport = true;
# Optional, to enroll the security engine to the console
extraEnv = {
ENROLL_INSTANCE_NAME = "homeserver";
ENROLL_KEY.fromFile = config.sops.secrets."crowdsec/enroll_key".path;
};
};
}Stack Options
nps.stacks.crowdsec.acquisSettings
Acquisitions settings for Crowdsec.
Each attribute set value will be mapped to an acquis configuration and mounted into the /etc/crowdsec/acquis.d directory.
See https://docs.crowdsec.net/docs/next/log_processor/data_sources/intro for all available options.
attribute set of (open submodule of (YAML 1.1 value))
{ }
nps.stacks.crowdsec.acquisSettings.<name>.labels
A map of labels to add to the event. The type label is mandatory, and used by the Security Engine to choose which parser to use.
See https://docs.crowdsec.net/docs/next/log_processor/data_sources/intro#labels
nps.stacks.crowdsec.acquisSettings.<name>.labels.type
This option has no description.
nps.stacks.crowdsec.acquisSettings.<name>.log_level
Log level to use in the datasource
nps.stacks.crowdsec.acquisSettings.<name>.source
Which type of datasource to use.
nps.stacks.crowdsec.collections
Collections to install. Will be passed as the COLLECTIONS environment variable.
strings concatenated with " "
""
"LePresidente/adguardhome crowdsecurity/aws-console"
nps.stacks.crowdsec.containers.crowdsec
Alias of {option}services.podman.containers.crowdsec.
nps.stacks.crowdsec.enable
Whether to enable crowdsec.
nps.stacks.crowdsec.enableGrafanaDashboard
Whether to enable Grafana Dashboard.
nps.stacks.crowdsec.enablePrometheusExport
Whether to enable Prometheus Export.
nps.stacks.crowdsec.extraEnv
Extra environment variables to set for the container. Variables can be either set directly or sourced from a file (e.g. for secrets).
See https://github.com/crowdsecurity/crowdsec/blob/master/docker/README.md#environment-variables
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
{ }
{
FOO = "bar";
SOME_SECRET = {
fromFile = "/run/secrets/secret_name";
};
}
nps.stacks.crowdsec.settings
Configuration settings for Crowdsec.
Will be provided as the config.yaml.local file.
See https://docs.crowdsec.net/docs/configuration/crowdsec_configuration/
nps.stacks.crowdsec.useSocketProxy
Whether to access the Podman socket through the read-only proxy for the crowdsec stack. Will be enabled by default if the 'docker-socket-proxy' stack is enabled.
boolean
config.nps.stacks.docker-socket-proxy.enable