2020-03-20 00:32:16 +00:00
|
|
|
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
|
2020-09-05 14:36:50 +01:00
|
|
|
index 45e55a2..9d18ee4 100644
|
2020-03-20 00:32:16 +00:00
|
|
|
--- a/modules/setting/setting.go
|
|
|
|
+++ b/modules/setting/setting.go
|
2020-09-05 14:36:50 +01:00
|
|
|
@@ -667,7 +667,7 @@ func NewContext() {
|
2017-10-18 05:16:33 +01:00
|
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
|
|
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
2020-09-05 14:36:50 +01:00
|
|
|
if len(StaticRootPath) == 0 {
|
|
|
|
- StaticRootPath = AppWorkPath
|
|
|
|
+ StaticRootPath = "@data@"
|
|
|
|
}
|
|
|
|
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
|
2020-03-20 00:32:16 +00:00
|
|
|
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
|