aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/version-management/gitea/static-root-path.patch
blob: 985dbe04082cd3417bb8b8307fe4552addaa304d (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 714015c47..a2f85337e 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -641,7 +641,7 @@ func NewContext() {
 	PortToRedirect = sec.Key("PORT_TO_REDIRECT").MustString("80")
 	OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
 	DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
-	StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
+	StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
 	StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
 	AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
 	EnableGzip = sec.Key("ENABLE_GZIP").MustBool()