Compare commits

..

2 Commits

Author SHA1 Message Date
ac09d67f4f Merge pull request 'Configure librecaptcha configuration for the development environment' (#179) from disable-librecaptcha-demo into main
All checks were successful
Check usage of free licenses / check-licenses (push) Successful in 1m4s
Run unit tests / unit_tests (push) Successful in 2m32s
Build Nginx-based docker image / build-static-assets (push) Successful in 23m0s
Reviewed-on: #179
2024-12-09 17:29:04 +00:00
e8543d8fb4 Configure librecaptcha configuration for the development environment
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m5s
Add copyright notice / copyright_notice (pull_request) Successful in 1m47s
Run unit tests / unit_tests (pull_request) Successful in 2m33s
2024-12-09 18:25:47 +01:00
2 changed files with 30 additions and 0 deletions

View File

@ -40,6 +40,7 @@ services:
image: librecaptcha/lc-core:latest image: librecaptcha/lc-core:latest
volumes: volumes:
- "./tmp/libre-captcha-data:/lc-core/data" - "./tmp/libre-captcha-data:/lc-core/data"
- "./libre-captcha-config.json:/lc-core/data/config.json"
ports: ports:
- 8888 - 8888
nginx: nginx:

29
libre-captcha-config.json Normal file
View File

@ -0,0 +1,29 @@
{
"randomSeed": -1534087241,
"port": 8888,
"address": "0.0.0.0",
"captchaExpiryTimeLimit": 5,
"bufferCount": 1000,
"threadDelay": 2,
"playgroundEnabled": false,
"corsHeader": "",
"maxAttemptsRatio": 0.009999999776482582,
"captchas": [
{
"name": "FilterChallenge",
"allowedLevels": [
"hard"
],
"allowedMedia": [
"image/png"
],
"allowedInputType": [
"text"
],
"allowedSizes": [
"350x100"
],
"config": {}
}
]
}