diff options
author | Unknwon <u@gogs.io> | 2016-03-12 13:53:37 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-12 13:53:37 -0500 |
commit | 820be19cf552767380f5ebfa9e5cb17d5f221bb2 (patch) | |
tree | 1b87d669df1ef144b9e24d52f6cc8230e06ec152 /modules | |
parent | d733efc1cc27739a386188e3aa02c8a524b06e8d (diff) | |
parent | 2c626371b0f8240827f0450e69afca99d209eb4d (diff) | |
download | gitea-820be19cf552767380f5ebfa9e5cb17d5f221bb2.tar.gz gitea-820be19cf552767380f5ebfa9e5cb17d5f221bb2.zip |
Merge pull request #2796 from saboya/custom_app_data_path
Making AppDataPath customizable.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index dcee488e70..5d117be41f 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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") { |