|
|
@ -114,6 +114,7 @@ var ( |
|
|
|
CookieRememberName string |
|
|
|
CookieRememberName string |
|
|
|
ReverseProxyAuthUser string |
|
|
|
ReverseProxyAuthUser string |
|
|
|
MinPasswordLength int |
|
|
|
MinPasswordLength int |
|
|
|
|
|
|
|
ImportLocalPaths bool |
|
|
|
|
|
|
|
|
|
|
|
// Database settings
|
|
|
|
// Database settings
|
|
|
|
UseSQLite3 bool |
|
|
|
UseSQLite3 bool |
|
|
@ -712,6 +713,7 @@ please consider changing to GITEA_CUSTOM`) |
|
|
|
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") |
|
|
|
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) |
|
|
|
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6) |
|
|
|
|
|
|
|
ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) |
|
|
|
|
|
|
|
|
|
|
|
sec = Cfg.Section("attachment") |
|
|
|
sec = Cfg.Section("attachment") |
|
|
|
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments")) |
|
|
|
AttachmentPath = sec.Key("PATH").MustString(path.Join(AppDataPath, "attachments")) |
|
|
@ -901,7 +903,7 @@ func newLogService() { |
|
|
|
useConsole = true |
|
|
|
useConsole = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!useConsole) { |
|
|
|
if !useConsole { |
|
|
|
log.DelLogger("console") |
|
|
|
log.DelLogger("console") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|