2020-04-24 23:36:52 +00:00
|
|
|
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
|
2020-09-25 04:45:31 +00:00
|
|
|
index 45e55a2..9d18ee4 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/modules/setting/setting.go
|
|
|
|
+++ b/modules/setting/setting.go
|
2020-09-25 04:45:31 +00:00
|
|
|
@@ -667,7 +667,7 @@ func NewContext() {
|
2020-04-24 23:36:52 +00:00
|
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
|
|
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
2020-09-25 04:45:31 +00:00
|
|
|
if len(StaticRootPath) == 0 {
|
|
|
|
- StaticRootPath = AppWorkPath
|
|
|
|
+ StaticRootPath = "@data@"
|
|
|
|
}
|
|
|
|
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
|
2020-04-24 23:36:52 +00:00
|
|
|
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
|