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

[captcha] Support multple domains #1

Open
LaurenceJJones opened this issue Apr 17, 2024 · 0 comments
Open

[captcha] Support multple domains #1

LaurenceJJones opened this issue Apr 17, 2024 · 0 comments

Comments

@LaurenceJJones
Copy link
Collaborator

LaurenceJJones commented Apr 17, 2024

As from user issue in reddit has outlined a limitation in the current lua implementation. My thoughts so far is we could expose a configuration which looks like:

captcha:
   - host: my.domain.net
     site_key: xyz
     site_secret: secret
     provider: recaptcha
   - host: my.domain.com
     site_key: xyz
     site_secret: secret
     provider: recaptcha
  - host: *.service.host
     site_key: xyz
     site_secret: secret
     provider: turnstile

The host is the host header that matches on either a string or a globbing pattern and then is served a template from this. However, each site will most likely want to grant a grace period per domain.

I havent even started working on Captcha side yet, so I dont know if this is achievable let alone how the template will be served.

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