README: add instructions for testing installation

This commit is contained in:
hrj 2021-04-01 17:02:59 +05:30
parent ac0fa4e5ff
commit 8837885539
1 changed files with 6 additions and 0 deletions

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.
To test the installation, try:
```
curl -d '{"media":"image/png","level":"easy","input_type":"text"}' localhost:8888/v1/captcha
```
## Configuration
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.