Adjust default config
authorCyril Brulebois <cyril@debamax.com>
Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)
committerCyril Brulebois <cyril@debamax.com>
Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)
Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

config/config.yaml

index 47a6cfff5670863e2d28feba8c56f3b13604decf..9bb8a5c629c395acfe7b9725956b8fb0048c3c20 100644 (file)
@@ -1,6 +1,5 @@
 common:
   daemonize: true
-  pid_dir: /var/run/
   log_media: file
   log_level: info
   log_dir: /var/log/
@@ -12,10 +11,10 @@ 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
+  hub_dir: /var/lib/crowdsec/hub/
+  index_path: /var/lib/crowdsec/hub/.index.json
   notification_dir: /etc/crowdsec/notifications/
-  plugin_dir: /usr/local/lib/crowdsec/plugins/
+  plugin_dir: /usr/lib/crowdsec/plugins/
 crowdsec_service:
   acquisition_path: /etc/crowdsec/acquis.yaml
   acquisition_dir: /etc/crowdsec/acquis.d