Skip to content

playgroundEnabled not working in configuration (Docker setup) #175

@pitininja

Description

@pitininja

Hello,

I've setup LibreCaptcha with Docker on a server. I use this docker-compose:

version: '3'

services:
  librecaptcha:
    container_name: librecaptcha
    image: librecaptcha/lc-core:latest
    restart: always
    volumes: 
      - librecaptcha_data:/lc-core/data
    networks:
      - librecaptcha-network
    ports: 
      - 127.0.0.1:8888:8888

volumes:
  librecaptcha_data:

networks:
  librecaptcha-network:
    name: librecaptcha

I've edited the configuration file located in the Docker volume with this configuration:

{
    "randomSeed": 1234,
    "port": 8888,
    "playgroundEnabled": false,
    "throttle": 10,
    "captchaExpiryTimeLimit": 5,
    "bufferCount": 1000,
    "threadDelay": 2,
    "corsHeader": "",
    "maxAttemptsRatio": 0.01,
    "captchas": [{
        "name": "FilterChallenge",
        "allowedLevels": [
            "medium",
            "hard"
        ],
        "allowedMedia": [
            "image/png"
        ],
        "allowedInputType": [
            "text"
        ],
        "config": {}
    }, {
        "name": "GifCaptcha",
        "allowedLevels": [
            "hard"
        ],
        "allowedMedia": [
            "image/gif"
        ],
        "allowedInputType": [
            "text"
        ],
        "config": {}
    }, {
        "name": "ShadowTextCaptcha",
        "allowedLevels": [
            "easy"
        ],
        "allowedMedia": [
            "image/png"
        ],
        "allowedInputType": [
            "text"
        ],
        "config": {}
    }, {
        "name": "RainDropsCaptcha",
        "allowedLevels": [
            "easy",
            "medium"
        ],
        "allowedMedia": [
            "image/gif"
        ],
        "allowedInputType": [
            "text"
        ],
        "config": {}
    }]
}

Configuration seems to be working fine.

However, even if the playgroundEnabled field is set to false, the demo is still served and available. I would like to disable this feature but I can't.

Thank you for any help

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions