From 1c7b5324f37e4f11ae81bca6d53e1af895e3c273 Mon Sep 17 00:00:00 2001 From: falkheiland Date: Tue, 30 Apr 2024 14:21:45 +0200 Subject: [PATCH] added USERIDs, edited description --- apps/crowdsec/docker-compose.yml | 2 ++ apps/crowdsec/metadata/description.md | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/apps/crowdsec/docker-compose.yml b/apps/crowdsec/docker-compose.yml index f4733877..8ff91d90 100644 --- a/apps/crowdsec/docker-compose.yml +++ b/apps/crowdsec/docker-compose.yml @@ -18,6 +18,7 @@ services: - /var/log/crowdsec:/var/log/crowdsec:ro environment: - COLLECTIONS=crowdsecurity/linux crowdsecurity/traefik crowdsecurity/http-cve crowdsecurity/whitelist-good-actors crowdsecurity/sshd + - GID=${GID-1000} networks: - tipi_main_network @@ -45,6 +46,7 @@ services: - ${APP_PORT}:3000 environment: - MB_DB_FILE=/data/metabase.db + - MGID=${GID-1000} depends_on: - crowdsec volumes: diff --git a/apps/crowdsec/metadata/description.md b/apps/crowdsec/metadata/description.md index 9f848cd3..8f7cf540 100644 --- a/apps/crowdsec/metadata/description.md +++ b/apps/crowdsec/metadata/description.md @@ -34,6 +34,24 @@ Please keep this key since you will not be able to retrieve it! to get the Bouncer API Key. Use this Key in the settings of the app instead of dummy Bouncer API Key and restart the app. +check for metrics with: + +## Check Metrics + +```bash +docker exec crowdsec cscli metrics +``` + +## Integrate in crowdsec Console + +https://app.crowdsec.net/security-engines + +With the key from the command line execute: + +```bash +docker exec crowdsec cscli console enroll cls3dg01i1000ju08fh24oj6j +``` + ## Traefik Integration add the following files and / or settings: @@ -55,6 +73,13 @@ add the following files and / or settings: http: middlewares: - crowdsec-bouncer@file + log: + filePath: "/var/log/traefik.log" + level: INFO + + accessLog: + filePath: "/var/log/access.log" + bufferingSize: 100 ``` - dynamic.yml