File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -475,10 +475,10 @@ make run
475
475
- If CaptchaProvider is ` custom ` , URL used to validate the challenge (in case of hcaptcha: ` https://api.hcaptcha.com/siteverify ` )
476
476
- CaptchaCustomKey
477
477
- 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 ` )
479
479
- CaptchaCustomResponse
480
480
- 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 ` )
482
482
- CaptchaSiteKey
483
483
- string
484
484
- Site key for the captcha provider
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ For now 3 captcha providers are supported:
20
20
- " traefik.http.middlewares.crowdsec.plugin.bouncer.captchaSiteKey=FIXME"
21
21
# Define captcha secret key
22
22
- " traefik.http.middlewares.crowdsec.plugin.bouncer.captchaSecretKey=FIXME"
23
- # Define captcha grade period seconds
23
+ # Define captcha grace period seconds
24
24
- " traefik.http.middlewares.crowdsec.plugin.bouncer.captchaGracePeriodSeconds=1800"
25
25
# Define captcha HTML file path
26
26
- " traefik.http.middlewares.crowdsec.plugin.bouncer.captchaHTMLFilePath=/captcha.html"
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ Minimal API requirement:
11
11
12
12
- the JS file URL to load the captcha on the served ` captcha.html `
13
13
- 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
16
16
17
17
- 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
18
18
Original file line number Diff line number Diff line change @@ -78,15 +78,15 @@ services:
78
78
- " traefik.enable=false"
79
79
80
80
wicketkeeper :
81
- image : ghcr.io/maxlerebourg /wicketkeeper:latest
81
+ image : ghcr.io/a-ve /wicketkeeper:latest
82
82
container_name : " wicketkeeper"
83
83
environment :
84
84
- ROOT_URL=http://captcha.localhost:8000
85
85
- LISTEN_PORT=8080
86
86
- REDIS_ADDR=redis:6379
87
87
- DIFFICULTY=4
88
88
- ALLOWED_ORIGINS=*
89
- - PRIVATE_KEY_PATH=/data/wicketkeeper.key
89
+ - PRIVATE_KEY_PATH=/data/wicketkeeper.key # To override in production environment
90
90
volumes :
91
91
- wicketkeeper-custom-captcha-enabled:/data
92
92
user : root
You can’t perform that action at this time.
0 commit comments