Skip to content

Commit 78c1192

Browse files
update readme to mirror easier api key setup
1 parent f45c53b commit 78c1192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ If adding multiple mods, enter them in an array separated by `|`, such as `DOCKE
1919

2020
If running CrowdSec in a container it must be on a common docker network with SWAG.
2121

22-
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.
22+
You have 2 options to generate a Crowdsec API key:
2323

24-
Make a note of the API key as you can't retrieve it later without removing and re-adding the bouncer.
24+
1. Create an arbitrary string and pass it as the `BOUNCER_KEY_swag` environment variable in your crowdsec image
25+
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.
2526

2627
Set the following environment variables on your SWAG container.
2728

0 commit comments

Comments
 (0)