Skip to content

Commit 1e2ce7d

Browse files
enhance: Add captcha_ret_code to nginx docs (#765)
1 parent 37ce908 commit 1e2ce7d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

crowdsec-docs/unversioned/bouncers/nginx.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,17 @@ CAPTCHA_EXPIRATION=3600
541541
542542
The time for which the captcha will be validated. After this duration, if the decision is still present in CrowdSec local API, the IPs address will get a captcha again.
543543
544+
### `CAPTCHA_RET_CODE`
545+
> int
546+
547+
> This option is only for the `captcha` remediation.
548+
549+
```bash
550+
CAPTCHA_RET_CODE=200
551+
```
552+
553+
Specifies the HTTP status code that should be returned to the client when a CAPTCHA challenge is required. This is especially useful when your traffic is routed through a CDN (like Cloudflare), where you may want to avoid triggering caching based on non-200 status codes. By default if no value is provided it will use 200 status code.
554+
544555
### `APPSEC_URL`
545556
> string
546557

0 commit comments

Comments
 (0)