From 78c1192dfedb85a397d898b700512a66375617ba Mon Sep 17 00:00:00 2001 From: paul-arthurthiery Date: Mon, 7 Oct 2024 14:59:05 -0400 Subject: [PATCH] update readme to mirror easier api key setup --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e23b8d0..868ad5a 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,10 @@ If adding multiple mods, enter them in an array separated by `|`, such as `DOCKE If running CrowdSec in a container it must be on a common docker network with SWAG. -Generate an API key for the bouncer with `cscli bouncers add bouncer-swag` or `docker exec -t crowdsec cscli bouncers add bouncer-swag`, if you're running CrowdSec in a container. +You have 2 options to generate a Crowdsec API key: -Make a note of the API key as you can't retrieve it later without removing and re-adding the bouncer. +1. Create an arbitrary string and pass it as the `BOUNCER_KEY_swag` environment variable in your crowdsec image +2. Generate an API key for the bouncer with `cscli bouncers add bouncer-swag` or `docker exec -t crowdsec cscli bouncers add bouncer-swag`, if you're running CrowdSec in a container. Make a note of the API key as you can't retrieve it later without removing and re-adding the bouncer. Set the following environment variables on your SWAG container.