cs-nginx-bouncer icon indicating copy to clipboard operation
cs-nginx-bouncer copied to clipboard

Allow use of .local config file

Open LtSich opened this issue 7 months ago • 2 comments

Hi,

On the nginx bouncer, the crowdsec-nginx-bouncer.conf.local config file is not read. This mean that you have to change the default file, and this break auto update, as the updater want to change crowdsec-nginx-bouncer.conf.

We need the ability to use a crowdsec-nginx-bouncer.conf.local file that will store local change.

LtSich avatar Mar 19 '25 08:03 LtSich

Hi,

With the bouncer nginx, the crowdsec-nginx-bouncer.conf is parsed by the lua code. On the other bouncers, this feature is abstracted through github.com/go-cs-lib. So this has to be added and actively maintained. Can you share what are the changes you are using for your crowdsec-nginx-bouncer.conf ?

sabban avatar Mar 24 '25 08:03 sabban

Hi,

api_key, api_url, appsec_url, mode, eventually enabled, captcha_provider, site_key, secret_key... I don't touch other configuration, but we should be able to change it too...

Is there a way to pass custom value without touching this file, and then don't be bothered with apt who tries to update the file sometimes?

LtSich avatar Mar 24 '25 08:03 LtSich

For now, no other option is available. I will try to come up with a solution for this.

sabban avatar Apr 14 '25 07:04 sabban

Hi,

The PR just got merged into main. This will be available in next release.

sabban avatar May 23 '25 15:05 sabban

This has been released today in the 1.1.3

sabban avatar Jul 18 '25 15:07 sabban