Openresty bouncer not working?

Since discovering that my bouncer wasn't properly working yesterday I've completly reworked my reverse proxy setup. Now I'm using an Ubuntu 22.04 machine running openresty. Yet I can't seem to get the bouncer working with my LAPI (LAPI says bouncer never pulled info from API). I have the include line in the nginx.conf. This is my config:
╰─❯ sudo cat /etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf
ENABLED=true
API_URL=http://crowdsec.home:8282
API_KEY=redacted
╰─❯ sudo cat /etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf
ENABLED=true
API_URL=http://crowdsec.home:8282
API_KEY=redacted
I'm not sure where to start troubleshooting as I can't seem to find any logs besides these: (which I know don't matter)
Feb 19 16:01:23 nginx-1 nginx[1125]: nginx: [error] [lua] crowdsec.lua:62: init(): error loading captcha plugin: no recaptcha site key provided, can't use recaptcha
Feb 19 16:01:23 nginx-1 nginx[1125]: nginx: [alert] [lua] crowdsec_openresty.conf:5):11: [Crowdsec] Initialisation done
Feb 19 16:01:23 nginx-1 nginx[1125]: nginx: [error] [lua] crowdsec.lua:62: init(): error loading captcha plugin: no recaptcha site key provided, can't use recaptcha
Feb 19 16:01:23 nginx-1 nginx[1125]: nginx: [alert] [lua] crowdsec_openresty.conf:5):11: [Crowdsec] Initialisation done
4 Replies
CrowdSec
CrowdSec7mo ago
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type /unresolve
© Created By WhyAydan for CrowdSec ❤️
iiamloz
iiamloz7mo ago
I can see it is actually loading the lua code, the only thing is the nginx code only triggers upon a request, so has the webserver recieved one request since its running?
PintjesBier
PintjesBierOP7mo ago
It hasn't I see, let me run a test Okay, the bouncer did pull from the API now. After some more troubleshooting with configs I got it working. Thanks Loz!
CrowdSec
CrowdSec7mo ago
Resolving Openresty bouncer not working? This has now been resolved. If you think this is a mistake please run /unresolve

Did you find this page helpful?