2020-03-20 01:32:16 +01:00
|
|
|
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
|
|
|
|
index 714015c47..a2f85337e 100644
|
|
|
|
--- a/modules/setting/setting.go
|
|
|
|
+++ b/modules/setting/setting.go
|
|
|
|
@@ -641,7 +641,7 @@ func NewContext() {
|
|
|
|
PortToRedirect = sec.Key("PORT_TO_REDIRECT").MustString("80")
|
2017-10-18 06:16:33 +02:00
|
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
|
|
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
2017-12-16 18:42:20 +01:00
|
|
|
- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
|
2017-10-18 06:16:33 +02:00
|
|
|
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
|
2020-03-20 01:32:16 +01:00
|
|
|
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
|
|
|
|
AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
|
2017-10-18 06:16:33 +02:00
|
|
|
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
|