mirror of
https://github.com/go-gitea/gitea
synced 2025-07-18 00:08:35 +00:00
Making AppDataPath customizable.
This commit is contained in:
@@ -54,7 +54,7 @@ var (
|
|||||||
AppSubUrl string
|
AppSubUrl string
|
||||||
AppSubUrlDepth int // Number of slashes
|
AppSubUrlDepth int // Number of slashes
|
||||||
AppPath string
|
AppPath string
|
||||||
AppDataPath = "data"
|
AppDataPath string
|
||||||
|
|
||||||
// Server settings
|
// Server settings
|
||||||
Protocol Scheme
|
Protocol Scheme
|
||||||
@@ -334,6 +334,7 @@ func NewContext() {
|
|||||||
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
||||||
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
||||||
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(workDir)
|
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(workDir)
|
||||||
|
AppDataPath = sec.Key("APP_DATA_PATH").MustString("data")
|
||||||
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
|
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
|
||||||
|
|
||||||
switch sec.Key("LANDING_PAGE").MustString("home") {
|
switch sec.Key("LANDING_PAGE").MustString("home") {
|
||||||
|
Reference in New Issue
Block a user