README: add instructions for testing installation

This commit is contained in:
hrj 2021-04-01 17:02:59 +05:30
parent ac0fa4e5ff
commit 8837885539

View File

@ -28,6 +28,12 @@ docker run -v lcdata:/lc-core/data librecaptcha/lc-core:latest
A default `config.json` is automatically created in the mounted volume. A default `config.json` is automatically created in the mounted volume.
To test the installation, try:
```
curl -d '{"media":"image/png","level":"easy","input_type":"text"}' localhost:8888/v1/captcha
```
## Configuration ## Configuration
If a `config.json` file is not present in the `data/` folder, the app creates one, and this can be modified If a `config.json` file is not present in the `data/` folder, the app creates one, and this can be modified
to customize the app features, such as which CAPTCHAs are enabled and their difficulty settings. to customize the app features, such as which CAPTCHAs are enabled and their difficulty settings.