lua-cs-bouncer-mcaptcha/nginx/template.conf
alteredCoder 4ec0c45bd5 update
2022-01-28 11:26:13 +01:00

20 lines
630 B
Text

API_URL=${CROWDSEC_LAPI_URL}
API_KEY=${API_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=200
UPDATE_FREQUENCY=10
MODE=stream
# exclude the bouncing on those location
EXCLUDE_LOCATION=/admin,/toto
#those apply for "ban" action
# /!\ REDIRECT_LOCATION and RET_CODE can't be used together. REDIRECT_LOCATION take priority over RET_CODE
REDIRECT_LOCATION=
RET_CODE=
#those apply for "captcha" action
SECRET_KEY=123
SITE_KEY=123
CAPTCHA_TEMPLATE_PATH=/usr/local/lua/crowdsec/captcha.js
CAPTCHA_EXPIRATION=3600