!88 合并定制化logo、备案号和构建调试安装脚本
* 开发环境配置方法、CI脚本、安装脚本 * 备案号可配置BEIAN_NUMBER = 苏ICP备888888888号-1 in [server] of app.ini * custom logo feature in -/admin/config/settings
This commit is contained in:
@@ -120,6 +120,9 @@ var (
|
||||
AbsoluteAssetURL string
|
||||
|
||||
ManifestData string
|
||||
|
||||
BeianNumber string // 网站备案号, e.g. 苏ICP备88888888888号-1
|
||||
|
||||
)
|
||||
|
||||
// MakeManifestData generates web app manifest JSON
|
||||
@@ -183,11 +186,12 @@ func MakeAbsoluteAssetURL(appURL, staticURLPrefix string) string {
|
||||
|
||||
func loadServerFrom(rootCfg ConfigProvider) {
|
||||
sec := rootCfg.Section("server")
|
||||
AppName = rootCfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea")
|
||||
|
||||
AppName = rootCfg.Section("").Key("APP_NAME").MustString("DevStar Studio")
|
||||
|
||||
Domain = sec.Key("DOMAIN").MustString("localhost")
|
||||
HTTPAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0")
|
||||
HTTPPort = sec.Key("HTTP_PORT").MustString("3000")
|
||||
BeianNumber = sec.Key("BEIAN_NUMBER").MustString("")
|
||||
|
||||
// DEPRECATED should not be removed because users maybe upgrade from lower version to the latest version
|
||||
// if these are removed, the warning will not be shown
|
||||
|
||||
@@ -158,6 +158,9 @@ func NewFuncMap() template.FuncMap {
|
||||
|
||||
"FilenameIsImage": filenameIsImage,
|
||||
"TabSizeClass": tabSizeClass,
|
||||
"BeianNumber": func() string {
|
||||
return setting.BeianNumber
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user