Skip to content

Commit b313dfe

Browse files
author
max.lerebourg
committed
🍱 fix last things
1 parent 5b217e2 commit b313dfe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@ make run
475475
- If CaptchaProvider is `custom`, URL used to validate the challenge (in case of hcaptcha: `https://api.hcaptcha.com/siteverify`)
476476
- CaptchaCustomKey
477477
- string
478-
- If CaptchaProvider is `custom`, used to set classname of the div used by captcha provider (in case of hcaptcha: `h-captcha`)
478+
- If CaptchaProvider is `custom`, used to set class name of the div used by captcha provider (in case of hcaptcha: `h-captcha`)
479479
- CaptchaCustomResponse
480480
- string
481-
- If CaptchaProvider is `custom`, used to set the field in the validate URL body (in case of hcaptcha: `h-captcha-response`)
481+
- If CaptchaProvider is `custom`, used to set the field in the POST body from the captcha.html to Traefik (in case of hcaptcha: `h-captcha-response`)
482482
- CaptchaSiteKey
483483
- string
484484
- Site key for the captcha provider

examples/captcha/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For now 3 captcha providers are supported:
2020
- "traefik.http.middlewares.crowdsec.plugin.bouncer.captchaSiteKey=FIXME"
2121
# Define captcha secret key
2222
- "traefik.http.middlewares.crowdsec.plugin.bouncer.captchaSecretKey=FIXME"
23-
# Define captcha grade period seconds
23+
# Define captcha grace period seconds
2424
- "traefik.http.middlewares.crowdsec.plugin.bouncer.captchaGracePeriodSeconds=1800"
2525
# Define captcha HTML file path
2626
- "traefik.http.middlewares.crowdsec.plugin.bouncer.captchaHTMLFilePath=/captcha.html"

examples/custom-captcha/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Minimal API requirement:
1111

1212
- the JS file URL to load the captcha on the served `captcha.html`
1313
- the HTML className to tell to the JS where to display the challenge
14-
- the verify URL endpoint to send the response from the captcha
15-
- the name of the field in the verify URL
14+
- the verify URL endpoint to send the field `response` from the captcha with `content-type: application/x-www-form-urlencoded`
15+
- the name of the field when you POST the resolved captcha to Traefik
1616

1717
- the JS file need to respect the `data-callback` on the div that contains the captcha if you use our template, but you can customize it by your side
1818

examples/custom-captcha/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ services:
7878
- "traefik.enable=false"
7979

8080
wicketkeeper:
81-
image: ghcr.io/maxlerebourg/wicketkeeper:latest
81+
image: ghcr.io/a-ve/wicketkeeper:latest
8282
container_name: "wicketkeeper"
8383
environment:
8484
- ROOT_URL=http://captcha.localhost:8000
8585
- LISTEN_PORT=8080
8686
- REDIS_ADDR=redis:6379
8787
- DIFFICULTY=4
8888
- ALLOWED_ORIGINS=*
89-
- PRIVATE_KEY_PATH=/data/wicketkeeper.key
89+
- PRIVATE_KEY_PATH=/data/wicketkeeper.key # To override in production environment
9090
volumes:
9191
- wicketkeeper-custom-captcha-enabled:/data
9292
user: root

0 commit comments

Comments
 (0)