diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-05-10 22:23:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 22:23:47 +0800 |
commit | 54f399c4df7d3470fff570afc145cbec3f0dcd40 (patch) | |
tree | e04f87e1017061af382de1a7954be5d5009d38ec /modules | |
parent | 89eebfae52f685581d2e9a4fc87c845591df1b37 (diff) | |
download | gitea-54f399c4df7d3470fff570afc145cbec3f0dcd40.tar.gz gitea-54f399c4df7d3470fff570afc145cbec3f0dcd40.zip |
Increase default LFS auth timeout from 20m to 24h (#24628)
According to the discussion with DanielGibson, the default "20m" seems
too short. It would make LFS fail if the file is large / network is
slow.
I think relaxing this timeout doesn't have side affect. So change the
default value to 24h, IMO that should be long enough.
## :warning: BREAKING
If admins want the previous timeout, they should set the setting
`[server].LFS_HTTP_AUTH_EXPIRY`.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/lfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go index 1b659dd22b..a5c3631681 100644 --- a/modules/setting/lfs.go +++ b/modules/setting/lfs.go @@ -45,7 +45,7 @@ func loadLFSFrom(rootCfg ConfigProvider) { LFS.LocksPagingNum = 50 } - LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(20 * time.Minute) + LFS.HTTPAuthExpiry = sec.Key("LFS_HTTP_AUTH_EXPIRY").MustDuration(24 * time.Hour) if LFS.StartServer { LFS.JWTSecretBytes = make([]byte, 32) |