diff options
author | Stan Hu <stanhu@gmail.com> | 2015-12-27 20:36:33 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-12-27 20:38:44 -0800 |
commit | 9e0f532f3eca474bbb4bdf49ea744afb23178b82 (patch) | |
tree | d9879f491173be5949639819055e3336c4b3efc7 /doc/integration/recaptcha.md | |
parent | 4c6591c9220676c97ddf2dda36e8e855d3196a74 (diff) | |
download | gitlab-ce-9e0f532f3eca474bbb4bdf49ea744afb23178b82.tar.gz |
Add documentation for using reCAPTCHAadd-recaptcha-support
Diffstat (limited to 'doc/integration/recaptcha.md')
-rw-r--r-- | doc/integration/recaptcha.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/integration/recaptcha.md b/doc/integration/recaptcha.md new file mode 100644 index 00000000000..7e6f7e7e30a --- /dev/null +++ b/doc/integration/recaptcha.md @@ -0,0 +1,56 @@ +# reCAPTCHA + +GitLab leverages [Google's reCAPTCHA](https://www.google.com/recaptcha/intro/index.html) +to protect against spam and abuse. GitLab displays the CAPTCHA form on the sign-up page +to confirm that a real user, not a bot, is attempting to create an account. + +## Configuration + +To use reCAPTCHA, first you must create a public and private key. + +1. Go to the URL: https://www.google.com/recaptcha/admin + +1. Fill out the form necessary to obtain reCAPTCHA keys. + +1. On your GitLab server, open the configuration file. + + For omnibus package: + + ```sh + sudo editor /etc/gitlab/gitlab.rb + ``` + + For installations from source: + + ```sh + cd /home/git/gitlab + + sudo -u git -H editor config/gitlab.yml + ``` + +1. Enable reCAPTCHA and add the settings: + + For omnibus package: + + ```ruby + gitlab_rails['recaptcha_enabled'] = true + gitlab_rails['recaptcha_public_key'] = 'YOUR_PUBLIC_KEY' + gitlab_rails['recaptcha_private_key'] = 'YOUR_PUBLIC_KEY' + ``` + + For installation from source: + + ``` + recaptcha: + enabled: true + public_key: 'YOUR_PUBLIC_KEY' + private_key: 'YOUR_PRIVATE_KEY' + ``` + +1. Change 'YOUR_PUBLIC_KEY' to the public key from step 2. + +1. Change 'YOUR_PRIVATE_KEY' to the private key from step 2. + +1. Save the configuration file. + +1. Restart GitLab. |