|
|
@ -65,7 +65,6 @@ var ( |
|
|
|
// Picture settings.
|
|
|
|
// Picture settings.
|
|
|
|
PictureService string |
|
|
|
PictureService string |
|
|
|
DisableGravatar bool |
|
|
|
DisableGravatar bool |
|
|
|
MaxGitDiffLines int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Log settings.
|
|
|
|
// Log settings.
|
|
|
|
LogRootPath string |
|
|
|
LogRootPath string |
|
|
@ -94,6 +93,12 @@ var ( |
|
|
|
SessionProvider string |
|
|
|
SessionProvider string |
|
|
|
SessionConfig *session.Config |
|
|
|
SessionConfig *session.Config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Git settings.
|
|
|
|
|
|
|
|
MaxGitDiffLines int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// I18n settings.
|
|
|
|
|
|
|
|
Langs, Names []string |
|
|
|
|
|
|
|
|
|
|
|
// Global setting objects.
|
|
|
|
// Global setting objects.
|
|
|
|
Cfg *goconfig.ConfigFile |
|
|
|
Cfg *goconfig.ConfigFile |
|
|
|
ConfRootPath string |
|
|
|
ConfRootPath string |
|
|
@ -101,9 +106,6 @@ var ( |
|
|
|
ProdMode bool |
|
|
|
ProdMode bool |
|
|
|
RunUser string |
|
|
|
RunUser string |
|
|
|
IsWindows bool |
|
|
|
IsWindows bool |
|
|
|
|
|
|
|
|
|
|
|
// I18n settings.
|
|
|
|
|
|
|
|
Langs, Names []string |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
@ -245,7 +247,7 @@ func NewConfigContext() { |
|
|
|
[]string{"server"}) |
|
|
|
[]string{"server"}) |
|
|
|
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR") |
|
|
|
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR") |
|
|
|
|
|
|
|
|
|
|
|
MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 5000) |
|
|
|
MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 10000) |
|
|
|
|
|
|
|
|
|
|
|
Langs = Cfg.MustValueArray("i18n", "LANGS", ",") |
|
|
|
Langs = Cfg.MustValueArray("i18n", "LANGS", ",") |
|
|
|
Names = Cfg.MustValueArray("i18n", "NAMES", ",") |
|
|
|
Names = Cfg.MustValueArray("i18n", "NAMES", ",") |
|
|
|