Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README to mirror easier crowdsec api key setup #964

Conversation

paul-arthurthiery
Copy link

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Update README to reflect changes following this PR.
Crowdsec API keys can now be generated outside of crowdsec and fed to both crowdsec and swag-crowdsec via environement variables, removing a step and simplifying the setup.

Benefits of this PR and context:

Guides users to pass an arbitrary string as the crowdsec-swag API key to both the crowdsec and swag images, thus removing the need to generate the API key from crowdsec.

How Has This Been Tested?

Crowdsec-side update should already have been tested in the previously mentioned PR.

I created a new docker compose file, added the CROWDSEC_API_KEY env variable to one, and BOUNCER_KEY_swag to the other. Built and ran the containers and both ran fine, correctly reporting the bouncer had been registered.

Ran on DSM 7

Source / References:

crowdsecurity/crowdsec#1341
https://www.linuxserver.io/blog/blocking-malicious-connections-with-crowdsec-and-swag

@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_964

README.md Outdated Show resolved Hide resolved
@thespad thespad self-assigned this Oct 7, 2024
@thespad thespad added the enhancement New feature or request label Oct 7, 2024
@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_964

@thespad thespad merged commit e3ccf28 into linuxserver:swag-crowdsec Oct 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

3 participants