Repository navigation
Expand file tree
/
Copy pathconfig_example.conf
More file actions
50 lines (49 loc) · 1.93 KB
/
Copy pathconfig_example.conf
File metadata and controls
50 lines (49 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ENABLED=true
API_URL=${CROWDSEC_LAPI_URL}
# Authentication options, either using an API key or TLS client certificate.
API_KEY=${API_KEY}
USE_TLS_AUTH=false
TLS_CLIENT_CERT=/path/to/client.crt
TLS_CLIENT_KEY=/path/to/client.key
CACHE_EXPIRATION=1
# bounce for all type of remediation that the bouncer can receive from the local API
BOUNCING_ON_TYPE=all
FALLBACK_REMEDIATION=ban
REQUEST_TIMEOUT=3000
UPDATE_FREQUENCY=10
# By default internal requests are ignored, such as any path affected by rewrite rule.
# set ENABLE_INTERNAL=true to allow checking on these internal requests.
ENABLE_INTERNAL=false
# live or stream
MODE=live
# Only enforce decisions whose scenario contains one of these comma-separated substrings.
# Matching is done server-side by the LAPI (case-insensitive substring), e.g. "http-,wordpress".
# Leave empty to enforce decisions from all scenarios.
SCENARIOS_CONTAINING=
# Ignore decisions whose scenario contains one of these comma-separated substrings, e.g. "ssh-bf".
SCENARIOS_NOT_CONTAINING=
# exclude the bouncing on those location
EXCLUDE_LOCATION=
#those apply for "ban" action
# /!\ REDIRECT_LOCATION and RET_CODE can't be used together. REDIRECT_LOCATION take priority over RET_CODE
BAN_TEMPLATE_PATH=/var/lib/crowdsec/lua/templates/ban.html
REDIRECT_LOCATION=
RET_CODE=
#those apply for "captcha" action
#valid providers are recaptcha, hcaptcha, turnstile
CAPTCHA_PROVIDER=
# Captcha Secret Key
SECRET_KEY=
# Captcha Site key
SITE_KEY=
CAPTCHA_TEMPLATE_PATH=/var/lib/crowdsec/lua/templates/captcha.html
CAPTCHA_EXPIRATION=3600
APPSEC_URL=
APPSEC_FAILURE_ACTION=passthrough
APPSEC_CONNECT_TIMEOUT=
APPSEC_SEND_TIMEOUT=
APPSEC_PROCESS_TIMEOUT=
ALWAYS_SEND_TO_APPSEC=false
# When true, drop requests whose body cannot be read (HTTP/2 or HTTP/3 requests without a content-length header, when using lua-nginx-module 0.10.26 or for gRPC requests) instead of forwarding them to AppSec without a body.
APPSEC_DROP_UNREADABLE_BODY=false
SSL_VERIFY=true