summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-24 13:55:47 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-24 13:55:47 -0400
commitb2801a2e985f11e940a0cd420cea57242ea26d4c (patch)
tree4d245376952e5800411043c0ebed021c89c489ea /modules/setting
parentceb415df8a5ba9e33840df5d635765424a2bee8e (diff)
downloadgitea-b2801a2e985f11e940a0cd420cea57242ea26d4c.tar.gz
gitea-b2801a2e985f11e940a0cd420cea57242ea26d4c.zip
Fix #165
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index cb7734bb32..f03aa8aeae 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -47,12 +47,12 @@ var (
StaticRootPath string
// Security settings.
- InstallLock bool
- SecretKey string
- LogInRememberDays int
- CookieUserName string
- CookieRememberName string
- ReverseProxyAuthUid string
+ InstallLock bool
+ SecretKey string
+ LogInRememberDays int
+ CookieUserName string
+ CookieRememberName string
+ ReverseProxyAuthUser string
// Webhook settings.
WebhookTaskInterval int
@@ -164,7 +164,7 @@ func NewConfigContext() {
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")
CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME")
CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME")
- ReverseProxyAuthUid = Cfg.MustValue("security", "REVERSE_PROXY_AUTHENTICATION_UID", "X-WEBAUTH-UID")
+ ReverseProxyAuthUser = Cfg.MustValue("security", "REVERSE_PROXY_AUTHENTICATION_USER", "X-WEBAUTH-USER")
RunUser = Cfg.MustValue("", "RUN_USER")
curUser := os.Getenv("USER")