File tree 2 files changed +9
-9
lines changed
pkgs/applications/version-management/gitea
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ with stdenv.lib;
8
8
9
9
buildGoPackage rec {
10
10
pname = "gitea" ;
11
- version = "1.12.3 " ;
11
+ version = "1.12.4 " ;
12
12
13
13
src = fetchurl {
14
14
url = "https://github.com/go-gitea/gitea/releases/download/v${ version } /gitea-src-${ version } .tar.gz" ;
15
- sha256 = "05z1pp2lnbr82pw97wy0j0qk2vv1qv9c46df13d03xdfsc3gsm50 " ;
15
+ sha256 = "0zz3mwf1yhncvi6pl52lcwbl7k4kkrqyw8q3476akwszjn79n83c " ;
16
16
} ;
17
17
18
18
unpackPhase = ''
Original file line number Diff line number Diff line change 1
1
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
2
- index 714015c47..a2f85337e 100644
2
+ index 45e55a2..9d18ee4 100644
3
3
--- a/modules/setting/setting.go
4
4
+++ 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() {
7
6
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
8
7
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)
11
13
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()
You can’t perform that action at this time.
0 commit comments