toxic: 0.15.1 -> 0.16.0
[NixPkgs.git] / pkgs / by-name / gi / gitea / static-root-path.patch
blob7f70329c60407da020a1abb076da804256930d8f
1 diff --git a/modules/setting/server.go b/modules/setting/server.go
2 index 183906268..fa02e8915 100644
3 --- a/modules/setting/server.go
4 +++ b/modules/setting/server.go
5 @@ -319,7 +319,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
6 OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
7 Log.DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
8 if len(StaticRootPath) == 0 {
9 - StaticRootPath = AppWorkPath
10 + StaticRootPath = "@data@"
12 StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
13 StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)