[GH-ISSUE #35] [PLUGIN] crowdsec central lapi #14

Closed
opened 2026-03-02 02:59:22 +03:00 by kerem · 2 comments
Owner

Originally created by @celevra on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/bunkerity/bunkerweb-plugins/issues/35

Plugin

crowdsec

Implementations ideas (optional)

Hi,

i want to connect crowdsec to my central lapi running on an other host.
but the docker container everytimes registers with the local server and overwrites the local_api_credentials.
what is the way to connect crowdsec to a central lapi?

regards

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @celevra on GitHub (Jan 11, 2024). Original GitHub issue: https://github.com/bunkerity/bunkerweb-plugins/issues/35 ### Plugin crowdsec ### Implementations ideas (optional) Hi, i want to connect crowdsec to my central lapi running on an other host. but the docker container everytimes registers with the local server and overwrites the local_api_credentials. what is the way to connect crowdsec to a central lapi? regards ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
kerem 2026-03-02 02:59:22 +03:00
Author
Owner

@celevra commented on GitHub (Jan 11, 2024):

to answer my own question:

bunkerweb connects directly as a bouncer with the predefined username bunkerweb
So you need to register a new bouncer on the central lapi:

cscli bouncers add bunkerweb

the command will give you an api key, that is the one that you fill into

      - CROWDSEC_API_KEY=

in CROWDSEC_API you fill your central lapi URL

then you just need a local crowdsec that is reading the nginx logs but you won't need a extra crowdsec container

<!-- gh-comment-id:1888038218 --> @celevra commented on GitHub (Jan 11, 2024): to answer my own question: bunkerweb connects directly as a bouncer with the predefined username bunkerweb So you need to register a new bouncer on the central lapi: ``` cscli bouncers add bunkerweb ``` the command will give you an api key, that is the one that you fill into ``` - CROWDSEC_API_KEY= ``` in CROWDSEC_API you fill your central lapi URL then you just need a local crowdsec that is reading the nginx logs but you won't need a extra crowdsec container
Author
Owner

@fl0ppy-d1sk commented on GitHub (Jan 15, 2024):

Hello @celevra,

Can we consider it as solved ?

<!-- gh-comment-id:1891616870 --> @fl0ppy-d1sk commented on GitHub (Jan 15, 2024): Hello @celevra, Can we consider it as solved ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bunkerweb-plugins#14
No description provided.