aboutsummaryrefslogtreecommitdiff
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-05 17:54:57 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-05 17:54:57 -0500
commit069486d169d7adac902a310e10b6580857735880 (patch)
tree18966a493e6d1d8d57bb8c9ef56ec65a16604db3 /modules/setting/setting.go
parent298ebc58c1bc79375248e4b0be173201b935b742 (diff)
fix #165
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 476fc6af..b1efc9c7 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -300,15 +300,15 @@ func NewConfigContext() {
}
var Service struct {
- RegisterEmailConfirm bool
- DisableRegistration bool
- RequireSignInView bool
- EnableCacheAvatar bool
- EnableNotifyMail bool
- EnableReverseProxyAuth bool
- LdapAuth bool
- ActiveCodeLives int
- ResetPwdCodeLives int
+ RegisterEmailConfirm bool
+ DisableRegistration bool
+ RequireSignInView bool
+ EnableCacheAvatar bool
+ EnableNotifyMail bool
+ EnableReverseProxyAuth bool
+ EnableReverseProxyAutoRegister bool
+ ActiveCodeLives int
+ ResetPwdCodeLives int
}
func newService() {
@@ -318,6 +318,7 @@ func newService() {
Service.RequireSignInView = Cfg.MustBool("service", "REQUIRE_SIGNIN_VIEW")
Service.EnableCacheAvatar = Cfg.MustBool("service", "ENABLE_CACHE_AVATAR")
Service.EnableReverseProxyAuth = Cfg.MustBool("service", "ENABLE_REVERSE_PROXY_AUTHENTICATION")
+ Service.EnableReverseProxyAutoRegister = Cfg.MustBool("service", "ENABLE_REVERSE_PROXY_AUTO_REGISTERATION")
}
var logLevels = map[string]string{