|
|
@ -163,6 +163,7 @@ var ( |
|
|
|
CookieUserName string |
|
|
|
CookieUserName string |
|
|
|
CookieRememberName string |
|
|
|
CookieRememberName string |
|
|
|
ReverseProxyAuthUser string |
|
|
|
ReverseProxyAuthUser string |
|
|
|
|
|
|
|
ReverseProxyAuthEmail string |
|
|
|
MinPasswordLength int |
|
|
|
MinPasswordLength int |
|
|
|
ImportLocalPaths bool |
|
|
|
ImportLocalPaths bool |
|
|
|
DisableGitHooks bool |
|
|
|
DisableGitHooks bool |
|
|
@ -950,6 +951,7 @@ func NewContext() { |
|
|
|
CookieUserName = sec.Key("COOKIE_USERNAME").MustString("gitea_awesome") |
|
|
|
CookieUserName = sec.Key("COOKIE_USERNAME").MustString("gitea_awesome") |
|
|
|
CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible") |
|
|
|
CookieRememberName = sec.Key("COOKIE_REMEMBER_NAME").MustString("gitea_incredible") |
|
|
|
ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER") |
|
|
|
ReverseProxyAuthUser = sec.Key("REVERSE_PROXY_AUTHENTICATION_USER").MustString("X-WEBAUTH-USER") |
|
|
|
|
|
|
|
ReverseProxyAuthEmail = sec.Key("REVERSE_PROXY_AUTHENTICATION_EMAIL").MustString("X-WEBAUTH-EMAIL") |
|
|
|
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) |
|
|
|
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) |
|
|
|
ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) |
|
|
|
ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) |
|
|
|
DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(false) |
|
|
|
DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(false) |
|
|
@ -1216,6 +1218,7 @@ var Service struct { |
|
|
|
EnableNotifyMail bool |
|
|
|
EnableNotifyMail bool |
|
|
|
EnableReverseProxyAuth bool |
|
|
|
EnableReverseProxyAuth bool |
|
|
|
EnableReverseProxyAutoRegister bool |
|
|
|
EnableReverseProxyAutoRegister bool |
|
|
|
|
|
|
|
EnableReverseProxyEmail bool |
|
|
|
EnableCaptcha bool |
|
|
|
EnableCaptcha bool |
|
|
|
CaptchaType string |
|
|
|
CaptchaType string |
|
|
|
RecaptchaSecret string |
|
|
|
RecaptchaSecret string |
|
|
@ -1247,6 +1250,7 @@ func newService() { |
|
|
|
Service.RequireSignInView = sec.Key("REQUIRE_SIGNIN_VIEW").MustBool() |
|
|
|
Service.RequireSignInView = sec.Key("REQUIRE_SIGNIN_VIEW").MustBool() |
|
|
|
Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool() |
|
|
|
Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool() |
|
|
|
Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool() |
|
|
|
Service.EnableReverseProxyAutoRegister = sec.Key("ENABLE_REVERSE_PROXY_AUTO_REGISTRATION").MustBool() |
|
|
|
|
|
|
|
Service.EnableReverseProxyEmail = sec.Key("ENABLE_REVERSE_PROXY_EMAIL").MustBool() |
|
|
|
Service.EnableCaptcha = sec.Key("ENABLE_CAPTCHA").MustBool(false) |
|
|
|
Service.EnableCaptcha = sec.Key("ENABLE_CAPTCHA").MustBool(false) |
|
|
|
Service.CaptchaType = sec.Key("CAPTCHA_TYPE").MustString(ImageCaptcha) |
|
|
|
Service.CaptchaType = sec.Key("CAPTCHA_TYPE").MustString(ImageCaptcha) |
|
|
|
Service.RecaptchaSecret = sec.Key("RECAPTCHA_SECRET").MustString("") |
|
|
|
Service.RecaptchaSecret = sec.Key("RECAPTCHA_SECRET").MustString("") |
|
|
|