aboutsummaryrefslogtreecommitdiffstats
path: root/custom/conf
diff options
context:
space:
mode:
authorByLCY <bylcy@bylcy.dev>2023-02-05 15:29:03 +0800
committerGitHub <noreply@github.com>2023-02-05 15:29:03 +0800
commit7baeb9c52a69eb6f7e0973986f2a6bebdd6352d0 (patch)
tree9aa89a504561468d26726507edb21c32a13621ae /custom/conf
parente35f8e15a67e8268542d2442dac32993b6944043 (diff)
downloadgitea-7baeb9c52a69eb6f7e0973986f2a6bebdd6352d0.tar.gz
gitea-7baeb9c52a69eb6f7e0973986f2a6bebdd6352d0.zip
Add new captcha: cloudflare turnstile (#22369)
Added a new captcha(cloudflare turnstile) and its corresponding document. Cloudflare turnstile official instructions are here: https://developers.cloudflare.com/turnstile Signed-off-by: ByLCY <bylcy@bylcy.dev> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Jason Song <i@wolfogre.com>
Diffstat (limited to 'custom/conf')
-rw-r--r--custom/conf/app.example.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 5a1edf9fbb..04ba2dc67a 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -765,7 +765,7 @@ ROUTER = console
;; Enable this to require captcha validation for login
;REQUIRE_CAPTCHA_FOR_LOGIN = false
;;
-;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha.
+;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha, cfturnstile.
;CAPTCHA_TYPE = image
;;
;; Change this to use recaptcha.net or other recaptcha service
@@ -787,6 +787,10 @@ ROUTER = console
;MCAPTCHA_SECRET =
;MCAPTCHA_SITEKEY =
;;
+;; Go to https://dash.cloudflare.com/?to=/:account/turnstile to sign up for a key
+;CF_TURNSTILE_SITEKEY =
+;CF_TURNSTILE_SECRET =
+;;
;; Default value for KeepEmailPrivate
;; Each new user will get the value of this setting copied into their profile
;DEFAULT_KEEP_EMAIL_PRIVATE = false