WIP
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adrien Reslinger 2022-03-26 00:30:49 +01:00
parent 2d8a504780
commit 21a784cc63
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
7 changed files with 180 additions and 1 deletions

View file

@ -0,0 +1,56 @@
common:
daemonize: true
pid_dir: /var/run/
log_media: file
log_level: info
log_dir: /var/log/
working_dir: .
config_paths:
config_dir: /etc/crowdsec/
data_dir: /var/lib/crowdsec/data/
simulation_path: /etc/crowdsec/simulation.yaml
hub_dir: /etc/crowdsec/hub/
index_path: /etc/crowdsec/hub/.index.json
notification_dir: /etc/crowdsec/notifications/
plugin_dir: /usr/lib64/crowdsec/plugins/
crowdsec_service:
acquisition_path: /etc/crowdsec/acquis.yaml
parser_routines: 1
cscli:
output: human
db_config:
log_level: info
type: sqlite
db_path: /var/lib/crowdsec/data/crowdsec.db
#user:
#password:
#db_name:
#host:
#port:
flush:
max_items: 5000
max_age: 7d
plugin_config:
user: nobody # plugin process would be ran on behalf of this user
group: nobody # plugin process would be ran on behalf of this group
api:
client:
insecure_skip_verify: false
credentials_path: /etc/crowdsec/local_api_credentials.yaml
{% if crowdsec_server.enabled %}
server:
log_level: info
listen_uri: {{ crowdsec_server.listen_uri }}
profiles_path: /etc/crowdsec/profiles.yaml
console_path: /etc/crowdsec/console.yaml
online_client: # Central API credentials (to push signals and receive bad IPs)
credentials_path: /etc/crowdsec/online_api_credentials.yaml
# tls:
# cert_file: /etc/crowdsec/ssl/cert.pem
# key_file: /etc/crowdsec/ssl/key.pem
{% endif %}
prometheus:
enabled: {{ crowdsec_prometheus.enabled }}
level: full
listen_addr: 127.0.0.1
listen_port: 6060

View file

@ -0,0 +1,7 @@
---
name: crowdsecurity/mywhitelists
description: "Whitelist events from my ip addresses"
whitelist:
reason: "my ip ranges"
ip: {{ crowdsec_whitelist.ip|to_yaml }}
cidr: {{ crowdsec_whitelist.cidr|to_yaml }}