aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/version-management/gitea/static-root-path.patch
blob: e486397d9cf131acb496613e5d0d7293ce8161f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 45e55a2..9d18ee4 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -667,7 +667,7 @@ func NewContext() {
 	OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
 	DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
 	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)