Skip to content

Commit 2f4c709

Browse files
committed
1 parent 86a1a0a commit 2f4c709

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pkgs/applications/version-management/gitea/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ with stdenv.lib;
88

99
buildGoPackage rec {
1010
pname = "gitea";
11-
version = "1.12.3";
11+
version = "1.12.4";
1212

1313
src = fetchurl {
1414
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
15-
sha256 = "05z1pp2lnbr82pw97wy0j0qk2vv1qv9c46df13d03xdfsc3gsm50";
15+
sha256 = "0zz3mwf1yhncvi6pl52lcwbl7k4kkrqyw8q3476akwszjn79n83c";
1616
};
1717

1818
unpackPhase = ''
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
2-
index 714015c47..a2f85337e 100644
2+
index 45e55a2..9d18ee4 100644
33
--- a/modules/setting/setting.go
44
+++ b/modules/setting/setting.go
5-
@@ -641,7 +641,7 @@ func NewContext() {
6-
PortToRedirect = sec.Key("PORT_TO_REDIRECT").MustString("80")
5+
@@ -667,7 +667,7 @@ func NewContext() {
76
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
87
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
9-
- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
10-
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
8+
if len(StaticRootPath) == 0 {
9+
- StaticRootPath = AppWorkPath
10+
+ StaticRootPath = "@data@"
11+
}
12+
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
1113
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
12-
AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
13-
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()

0 commit comments

Comments
 (0)