aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRodrigo Saboya <saboya@gmail.com>2016-03-09 22:53:42 -0300
committerRodrigo Saboya <saboya@gmail.com>2016-03-09 22:53:42 -0300
commit3cacec916308a350b2c801129f550d46c28dfd49 (patch)
tree7d3c5736a2fca97ed8cd2cf1d7433a7e5b9df6f1 /modules
parentad513a20e939691828ba415c9a565e8ff3daa95f (diff)
downloadgitea-3cacec916308a350b2c801129f550d46c28dfd49.tar.gz
gitea-3cacec916308a350b2c801129f550d46c28dfd49.zip
Making AppDataPath customizable.
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go3
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") {