From b985f2d7488af5b5b28a85704a2da71430712186 Mon Sep 17 00:00:00 2001 From: mathieuHa Date: Thu, 29 Sep 2022 07:44:22 +0200 Subject: [PATCH] update main (#11) * Update readme, add about sectioj * Update readme about * Change parameter with capitalized letters * Add docker-compose local and docker-compose for real world utilization * Update readme and .traefik * update readme and docker-compose * Update .traefik Co-authored-by: MathieuHa --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 9ab0040..9fbb10d 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,33 @@ You can then run all the containers: docker-compose -f docker-compose-local.yml up -d ``` +#### Generate LAPI-KEY +You need to generate a crowdsec API key for the LAPI. +You can follow the documentation here: https://docs.crowdsec.net/docs/user_guides/lapi_mgmt/ + +```bash +docker-compose -f docker-compose-local.yml up -d crowdsec +docker exec crowdsec cscli bouncers add crowdsecBouncer +``` + +This LApi key must be set where is noted FIXME-LAPI-KEY in the docker-compose-test.yml +```yaml +... +whoami: + labels: + - "traefik.http.middlewares.crowdsec.plugin.bouncer.crowdseclapikey=FIXME-LAPI-KEY" +... +crowdsec: + environment: + BOUNCER_KEY_TRAEFIK: FIXME-LAPI-KEY +... +``` + +You can then run all the containers: +```bash +docker-compose -f docker-compose-local.yml up -d +``` + #### Add manually an IP to the blocklist ```bash