2023-03-24 00:07:29 +00:00
|
|
|
diff --git a/modules/setting/server.go b/modules/setting/server.go
|
|
|
|
index 183906268..fa02e8915 100644
|
|
|
|
--- a/modules/setting/server.go
|
|
|
|
+++ b/modules/setting/server.go
|
|
|
|
@@ -319,7 +319,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
|
2020-04-24 23:36:52 +00:00
|
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
2023-03-24 00:07:29 +00:00
|
|
|
Log.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)
|