aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-03-09 19:56:18 +0000
committerGitHub <noreply@github.com>2020-03-09 19:56:18 +0000
commit9269b7f6271e865f2eeda7a68ed8f1afe7431bad (patch)
tree9b42ddac5ee366a08b9450848b8c40e40846b9b5 /modules/setting
parent3fc4f3670cb748e02d786111d2029ef1e23a9640 (diff)
downloadgitea-9269b7f6271e865f2eeda7a68ed8f1afe7431bad.tar.gz
gitea-9269b7f6271e865f2eeda7a68ed8f1afe7431bad.zip
Multiple LFS improvements (#10667)
* Add more logging in the LFS server Adds more logging in the LFS server and stops sending internal server error information to the client * Add LFS Lock cursor implementation * Simplify Claims in LFS and remove the float64 casts Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 64051ce215..74f6da38d1 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -141,6 +141,7 @@ var (
JWTSecretBytes []byte `ini:"-"`
HTTPAuthExpiry time.Duration `ini:"LFS_HTTP_AUTH_EXPIRY"`
MaxFileSize int64 `ini:"LFS_MAX_FILE_SIZE"`
+ LocksPagingNum int `ini:"LFS_LOCKS_PAGING_NUM"`
}
// Security settings
@@ -720,6 +721,9 @@ func NewContext() {
if !filepath.IsAbs(LFS.ContentPath) {
LFS.ContentPath = filepath.Join(AppWorkPath, LFS.ContentPath)
}
+ if LFS.LocksPagingNum == 0 {
+ LFS.LocksPagingNum = 50
+ }
LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute)