Load Turnstile site key at runtime
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 54s

This commit is contained in:
Cauê Faleiros
2026-07-28 13:03:51 -03:00
parent 20dde11ff0
commit ed3a3f0571
9 changed files with 77 additions and 25 deletions

View File

@@ -112,16 +112,13 @@ N8N_WHATSAPP_TRIGGER_URL
ADMIN_EMAIL
ADMIN_PASSWORD
JWT_SECRET
TURNSTILE_SITE_KEY
TURNSTILE_SECRET
VITE_TURNSTILE_SITE_KEY
```
`TURNSTILE_SECRET` enables backend CAPTCHA enforcement on `/api/login`.
Set `VITE_TURNSTILE_SITE_KEY` at frontend build time to show Cloudflare Turnstile
on the login page.
If `TURNSTILE_SECRET` is set but the login page does not show the verification
widget, rebuild the frontend image with `VITE_TURNSTILE_SITE_KEY` available.
`TURNSTILE_SECRET` enables backend CAPTCHA enforcement on `/api/login`. Set
`TURNSTILE_SITE_KEY` with Cloudflare's public site key so the login page can load
the verification widget at runtime.
## Validation