vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / fo / forgejo / static-root-path.patch
blob598c3a8103b1ddeecde6a38b9c805478621bb9c4
1 diff --git a/modules/setting/server.go b/modules/setting/server.go
2 index c20dd1949d..c9bcdce99a 100644
3 --- a/modules/setting/server.go
4 +++ b/modules/setting/server.go
5 @@ -317,7 +317,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
6 RedirectorUseProxyProtocol = sec.Key("REDIRECTOR_USE_PROXY_PROTOCOL").MustBool(UseProxyProtocol)
7 OfflineMode = sec.Key("OFFLINE_MODE").MustBool(true)
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)