forked from hacc/haccfiles
stuebinm
147fe172d9
this bundles the current package recipe of forgejo in nixpkgs-unstable. Implies updating forgejo, since nixpkgs-stable is still on 1.20.6 (v6 in the new version scheme). This'll mean we have to manually update it same as with mattermost, and can potentially also help with upstream changes. If we get tired of that, we can always decide to just use the nixpkgs-unstable version directly.
13 lines
635 B
Diff
13 lines
635 B
Diff
diff --git a/modules/setting/server.go b/modules/setting/server.go
|
|
index c20dd1949d..c9bcdce99a 100644
|
|
--- a/modules/setting/server.go
|
|
+++ b/modules/setting/server.go
|
|
@@ -317,7 +317,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
|
|
RedirectorUseProxyProtocol = sec.Key("REDIRECTOR_USE_PROXY_PROTOCOL").MustBool(UseProxyProtocol)
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool(true)
|
|
if len(StaticRootPath) == 0 {
|
|
- StaticRootPath = AppWorkPath
|
|
+ StaticRootPath = "@data@"
|
|
}
|
|
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
|
|
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
|