Make hCaptcha site key configurable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user