summaryrefslogtreecommitdiffstats
path: root/modules/setting/service.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-05-02 14:09:39 +0100
committerLauris BH <lauris@nix.lv>2019-05-02 16:09:39 +0300
commitade88a877d7f3c1fba466359198b8aa8ce5f28f8 (patch)
tree05ba56fbd3ac14068ccd1cc7deb713caec725db0 /modules/setting/service.go
parent159294f79991ad50747cb5f14c82aadfdc77f2c8 (diff)
downloadgitea-ade88a877d7f3c1fba466359198b8aa8ce5f28f8.tar.gz
gitea-ade88a877d7f3c1fba466359198b8aa8ce5f28f8.zip
Allow Recaptcha service url to be configured (#6820)
Diffstat (limited to 'modules/setting/service.go')
-rw-r--r--modules/setting/service.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/service.go b/modules/setting/service.go
index 08bfb6c414..7e4fb8d7d9 100644
--- a/modules/setting/service.go
+++ b/modules/setting/service.go
@@ -30,6 +30,7 @@ var Service struct {
CaptchaType string
RecaptchaSecret string
RecaptchaSitekey string
+ RecaptchaURL string
DefaultKeepEmailPrivate bool
DefaultAllowCreateOrganization bool
EnableTimetracking bool
@@ -63,6 +64,7 @@ func newService() {
Service.CaptchaType = sec.Key("CAPTCHA_TYPE").MustString(ImageCaptcha)
Service.RecaptchaSecret = sec.Key("RECAPTCHA_SECRET").MustString("")
Service.RecaptchaSitekey = sec.Key("RECAPTCHA_SITEKEY").MustString("")
+ Service.RecaptchaURL = sec.Key("RECAPTCHA_URL").MustString("https://www.google.com/recaptcha/")
Service.DefaultKeepEmailPrivate = sec.Key("DEFAULT_KEEP_EMAIL_PRIVATE").MustBool()
Service.DefaultAllowCreateOrganization = sec.Key("DEFAULT_ALLOW_CREATE_ORGANIZATION").MustBool(true)
Service.EnableTimetracking = sec.Key("ENABLE_TIMETRACKING").MustBool(true)