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

Cannot use captcha remediation when nginx serves multiple domains #73

Open
blotus opened this issue Aug 22, 2024 · 0 comments
Open

Cannot use captcha remediation when nginx serves multiple domains #73

blotus opened this issue Aug 22, 2024 · 0 comments

Comments

@blotus
Copy link
Member

blotus commented Aug 22, 2024

The bouncer only allows to set one captcha key in the configuration, meaning it cannot handle multiple domains.

We need to allow override of the key defined in the configuration on a per-location/server basic with a variable, for example:

server {
  server_name foo.com;
  
  set $crowdsec_bouncer_captcha_provider "hcaptcha";
  set $crowdsec_bouncer_captcha_secret_key "XXXXX";
  set $crowdsec_bouncer_captcha_site_key "XXXXX";
  
  location / {
   ....
  }
}
# If nothing is set, take the value from the bouncer config file
server {
 server_name bar.com;
 location / {
 ....
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant