|
|
@ -49,6 +49,7 @@ var ( |
|
|
|
AppName string |
|
|
|
AppName string |
|
|
|
AppLogo string |
|
|
|
AppLogo string |
|
|
|
AppUrl string |
|
|
|
AppUrl string |
|
|
|
|
|
|
|
SshPort int |
|
|
|
OfflineMode bool |
|
|
|
OfflineMode bool |
|
|
|
DisableRouterLog bool |
|
|
|
DisableRouterLog bool |
|
|
|
ProdMode bool |
|
|
|
ProdMode bool |
|
|
@ -330,6 +331,7 @@ func NewConfigContext() { |
|
|
|
AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png") |
|
|
|
AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png") |
|
|
|
AppUrl = Cfg.MustValue("server", "ROOT_URL") |
|
|
|
AppUrl = Cfg.MustValue("server", "ROOT_URL") |
|
|
|
Domain = Cfg.MustValue("server", "DOMAIN") |
|
|
|
Domain = Cfg.MustValue("server", "DOMAIN") |
|
|
|
|
|
|
|
SshPort = Cfg.MustInt("server", "SSH_PORT", 22) |
|
|
|
OfflineMode = Cfg.MustBool("server", "OFFLINE_MODE", false) |
|
|
|
OfflineMode = Cfg.MustBool("server", "OFFLINE_MODE", false) |
|
|
|
DisableRouterLog = Cfg.MustBool("server", "DISABLE_ROUTER_LOG", false) |
|
|
|
DisableRouterLog = Cfg.MustBool("server", "DISABLE_ROUTER_LOG", false) |
|
|
|
SecretKey = Cfg.MustValue("security", "SECRET_KEY") |
|
|
|
SecretKey = Cfg.MustValue("security", "SECRET_KEY") |
|
|
|