aboutsummaryrefslogtreecommitdiff
path: root/modules/base/conf.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-27 01:05:13 -0600
committerUnknown <joe2010xtmf@163.com>2014-04-27 01:05:13 -0600
commit62d23e91541550d0478c4884696e918a0e818b4f (patch)
tree335e18b41b15a419233e5117d1cbc43fa66f2b5c /modules/base/conf.go
parent59d0e73c3507296b31c8e741b44afc7bfe1eb695 (diff)
HTTP no follow and offline mode
Diffstat (limited to 'modules/base/conf.go')
-rw-r--r--modules/base/conf.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 17b55316..cfc85ff5 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -45,14 +45,15 @@ type Oauther struct {
}
var (
- AppVer string
- AppName string
- AppLogo string
- AppUrl string
- IsProdMode bool
- Domain string
- SecretKey string
- RunUser string
+ AppVer string
+ AppName string
+ AppLogo string
+ AppUrl string
+ OfflineMode bool
+ ProdMode bool
+ Domain string
+ SecretKey string
+ RunUser string
RepoRootPath string
ScriptType string
@@ -325,6 +326,7 @@ func NewConfigContext() {
AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png")
AppUrl = Cfg.MustValue("server", "ROOT_URL")
Domain = Cfg.MustValue("server", "DOMAIN")
+ OfflineMode = Cfg.MustBool("server", "OFFLINE_MODE", false)
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
InstallLock = Cfg.MustBool("security", "INSTALL_LOCK", false)