1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/applications/version-management/gitea/static-root-path.patch

14 lines
714 B
Diff
Raw Normal View History

2017-10-18 05:16:33 +01:00
diff --git i/modules/setting/setting.go w/modules/setting/setting.go
index aafe2d1b..1e4a8064 100644
--- i/modules/setting/setting.go
+++ w/modules/setting/setting.go
2017-12-16 17:42:20 +00:00
@@ -730,7 +730,7 @@ func NewContext() {
2017-10-18 05:16:33 +01:00
LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(defaultLocalURL)
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
2017-12-16 17:42:20 +00:00
- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
2017-10-18 05:16:33 +01:00
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
2017-12-16 17:42:20 +00:00
AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
2017-10-18 05:16:33 +01:00
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
EnablePprof = sec.Key("ENABLE_PPROF").MustBool(false)