feat: Add crowdsec to replace fail2ban
This commit is contained in:
parent
5f4d4de135
commit
ae4cc7cb08
3 changed files with 52 additions and 0 deletions
configuration/services/metrics
|
@ -10,6 +10,22 @@
|
|||
extraSettings.authorization.credentials_file = config.sops.secrets."forgejo/metrics-token".path;
|
||||
};
|
||||
coturn.targets = [ "127.0.0.1:9641" ];
|
||||
|
||||
crowdsec.targets =
|
||||
let
|
||||
address = config.security.crowdsec.settings.prometheus.listen_addr;
|
||||
port = config.security.crowdsec.settings.prometheus.listen_port;
|
||||
in
|
||||
[ "${address}:${toString port}" ];
|
||||
|
||||
csFirewallBouncer.targets =
|
||||
let
|
||||
address =
|
||||
config.security.crowdsec.remediationComponents.firewallBouncer.settings.prometheus.listen_addr;
|
||||
port =
|
||||
config.security.crowdsec.remediationComponents.firewallBouncer.settings.prometheus.listen_port;
|
||||
in
|
||||
[ "${address}:${toString port}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue