|
|
@ -480,15 +480,16 @@ var ( |
|
|
|
ShowFooterTemplateLoadTime bool |
|
|
|
ShowFooterTemplateLoadTime bool |
|
|
|
|
|
|
|
|
|
|
|
// Global setting objects
|
|
|
|
// Global setting objects
|
|
|
|
Cfg *ini.File |
|
|
|
Cfg *ini.File |
|
|
|
CustomPath string // Custom directory path
|
|
|
|
CustomPath string // Custom directory path
|
|
|
|
CustomConf string |
|
|
|
CustomConf string |
|
|
|
CustomPID string |
|
|
|
CustomPID string |
|
|
|
ProdMode bool |
|
|
|
ProdMode bool |
|
|
|
RunUser string |
|
|
|
RunUser string |
|
|
|
IsWindows bool |
|
|
|
IsWindows bool |
|
|
|
HasRobotsTxt bool |
|
|
|
HasRobotsTxt bool |
|
|
|
InternalToken string // internal access token
|
|
|
|
InternalToken string // internal access token
|
|
|
|
|
|
|
|
IterateBufferSize int |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// DateLang transforms standard language locale name to corresponding value in datetime plugin.
|
|
|
|
// DateLang transforms standard language locale name to corresponding value in datetime plugin.
|
|
|
@ -873,6 +874,7 @@ func NewContext() { |
|
|
|
log.Fatal(4, "Error saving generated JWT Secret to custom config: %v", err) |
|
|
|
log.Fatal(4, "Error saving generated JWT Secret to custom config: %v", err) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
IterateBufferSize = Cfg.Section("database").Key("ITERATE_BUFFER_SIZE").MustInt(50) |
|
|
|
|
|
|
|
|
|
|
|
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")) |
|
|
|