|
@@ -43,11 +43,11 @@ const (
|
|
|
)
|
|
|
|
|
|
var (
|
|
|
-
|
|
|
+
|
|
|
BuildTime string
|
|
|
BuildGitHash string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
AppVer string
|
|
|
AppName string
|
|
|
AppUrl string
|
|
@@ -55,7 +55,7 @@ var (
|
|
|
AppPath string
|
|
|
AppDataPath = "data"
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Protocol Scheme
|
|
|
Domain string
|
|
|
HttpAddr, HttpPort string
|
|
@@ -71,7 +71,7 @@ var (
|
|
|
EnableGzip bool
|
|
|
LandingPageUrl LandingPage
|
|
|
|
|
|
-
|
|
|
+
|
|
|
InstallLock bool
|
|
|
SecretKey string
|
|
|
LogInRememberDays int
|
|
@@ -79,13 +79,13 @@ var (
|
|
|
CookieRememberName string
|
|
|
ReverseProxyAuthUser string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
UseSQLite3 bool
|
|
|
UseMySQL bool
|
|
|
UsePostgreSQL bool
|
|
|
UseTiDB bool
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Webhook struct {
|
|
|
QueueLength int
|
|
|
DeliverTimeout int
|
|
@@ -94,7 +94,7 @@ var (
|
|
|
PagingNum int
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Repository struct {
|
|
|
AnsiCharset string
|
|
|
ForcePrivate bool
|
|
@@ -104,7 +104,7 @@ var (
|
|
|
RepoRootPath string
|
|
|
ScriptType string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
ExplorePagingNum int
|
|
|
IssuePagingNum int
|
|
|
FeedMaxCommitNum int
|
|
@@ -113,47 +113,47 @@ var (
|
|
|
AdminNoticePagingNum int
|
|
|
AdminOrgPagingNum int
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Markdown struct {
|
|
|
EnableHardLineBreak bool
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
PictureService string
|
|
|
AvatarUploadPath string
|
|
|
GravatarSource string
|
|
|
DisableGravatar bool
|
|
|
|
|
|
-
|
|
|
+
|
|
|
LogRootPath string
|
|
|
LogModes []string
|
|
|
LogConfigs []string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
AttachmentPath string
|
|
|
AttachmentAllowedTypes string
|
|
|
AttachmentMaxSize int64
|
|
|
AttachmentMaxFiles int
|
|
|
AttachmentEnabled bool
|
|
|
|
|
|
-
|
|
|
+
|
|
|
TimeFormat string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
CacheAdapter string
|
|
|
CacheInternal int
|
|
|
CacheConn string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
SessionConfig session.Options
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Git struct {
|
|
|
MaxGitDiffLines int
|
|
|
GcArgs []string `delim:" "`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Cron struct {
|
|
|
UpdateMirror struct {
|
|
|
Enabled bool
|
|
@@ -174,17 +174,19 @@ var (
|
|
|
} `ini:"cron.check_repo_stats"`
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Langs, Names []string
|
|
|
dateLangs map[string]string
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
ShowFooterBranding bool
|
|
|
ShowFooterVersion bool
|
|
|
|
|
|
-
|
|
|
+
|
|
|
Cfg *ini.File
|
|
|
- CustomPath string
|
|
|
+ CustomPath string
|
|
|
CustomConf string
|
|
|
ProdMode bool
|
|
|
RunUser string
|