Browse Source

Making AppDataPath customizable.

tags/v1.21.12.1
Rodrigo Saboya 9 years ago
parent
commit
3cacec9163
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/setting/setting.go

+ 2
- 1
modules/setting/setting.go View File

@@ -54,7 +54,7 @@ var (
AppSubUrl string
AppSubUrlDepth int // Number of slashes
AppPath string
AppDataPath = "data"
AppDataPath string

// Server settings
Protocol Scheme
@@ -334,6 +334,7 @@ func NewContext() {
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(workDir)
AppDataPath = sec.Key("APP_DATA_PATH").MustString("data")
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()

switch sec.Key("LANDING_PAGE").MustString("home") {


Loading…
Cancel
Save