crowdsecurity / cs-nginx-bouncer

CrowdSec bouncer for Nginx
MIT License
50 stars 9 forks source link

[install] Scripts states generation of key failed and must manually set it #60

Open LaurenceJJones opened 6 months ago

LaurenceJJones commented 6 months ago

As title states, the script generates the key and informs user to replace it manually but it actually does work

lua-cjson 2.1.0.10-1 is now installed in /usr/local (license: MIT)

cscli is /usr/bin/cscli
cscli/crowdsec is present, generating API key
API Key : <redact>
Can't generate an API key for the bouncer. Please do it manually
Restart nginx to enable the crowdsec bouncer : sudo systemctl restart nginx

If you want to setup captcha remediation, follow official documentation : 
https://docs.crowdsec.net/docs/bouncers/nginx#when-using-captcha-remediation

https://github.com/crowdsecurity/cs-nginx-bouncer/blob/main/debian/postinst#L42

We need to modify the else statement to set API_KEY_REQUIRED to false