Make hCaptcha site key configurable

This commit is contained in:
2026-08-25 01:05:12 +00:00
parent 0f4a56ada7
commit 151cb7bf2e
5 changed files with 41 additions and 2 deletions
+6 -1
View File
@@ -27,12 +27,17 @@ backend. The URL usually has this format:
https://hub.example.com/api/client/config/global
```
Create an hCaptcha site for the public frontend domain. Set its public site key
as `VITE_HCAPTCHA_SITEKEY`. Set the related secret in the backend
`config/config.json` file. The site key is included in the frontend files and is
not a secret.
Enable the `client-config` external plugin in the backend configuration. The
backend `abbr` value must match the API prefix without its leading slash. For
example, use `"abbr": "api"` with `"prefix": "/api"`.
The frontend uses the Vite values during the image build. Rebuild the image after
you change `.env`.
you change `.env`, including the hCaptcha site key.
## Start the deployment