|
|
@ -22,12 +22,16 @@ cscli: |
|
|
|
|
|
|
|
|
|
|
|
db_config: |
|
|
|
db_config: |
|
|
|
log_level: info |
|
|
|
log_level: info |
|
|
|
|
|
|
|
{% if crowdsec_db_engine == 'mysql' %} |
|
|
|
type: mysql |
|
|
|
type: mysql |
|
|
|
user: {{ crowdsec_db_user }} |
|
|
|
user: {{ crowdsec_db_user }} |
|
|
|
password: {{ crowdsec_db_pass | quote }} |
|
|
|
password: {{ crowdsec_db_pass | quote }} |
|
|
|
db_name: {{ crowdsec_db_name }} |
|
|
|
db_name: {{ crowdsec_db_name }} |
|
|
|
host: {{ crowdsec_db_server }} |
|
|
|
host: {{ crowdsec_db_server }} |
|
|
|
port: {{ crowdsec_db_port }} |
|
|
|
port: {{ crowdsec_db_port }} |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
db_path: /var/lib/crowdsec/data/crowdsec.db |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
flush: |
|
|
|
flush: |
|
|
|
max_items: 100000 |
|
|
|
max_items: 100000 |
|
|
|
max_age: 730d |
|
|
|
max_age: 730d |
|
|
|