summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorInon S <InonS@users.noreply.github.com>2018-05-29 11:07:16 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2018-05-29 16:07:16 +0800
commit15f6ec96327d69d19fcce937811214e113341f58 (patch)
tree36fa8e3ca63a7018ccd9c7b0ab167e5612a28274 /cmd
parent832ca509d36ede26780ccb76528515fe318dca8d (diff)
downloadgitea-15f6ec96327d69d19fcce937811214e113341f58.tar.gz
gitea-15f6ec96327d69d19fcce937811214e113341f58.zip
LFS: make HTTP auth period configurable (#4035)
* LFS: make HTTP auth period configurable * Formatting: Removed semicolon Due to automated fmt-check failure (drone.gitea.io) * applying code reviews * Applied code review comment: Change HTTPAuthExpiry to time.Duration * Updated config cheat sheet
Diffstat (limited to 'cmd')
-rw-r--r--cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 5d567e6d64..990355be98 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -268,7 +268,7 @@ func runServ(c *cli.Context) error {
claims := jwt.MapClaims{
"repo": repo.ID,
"op": lfsVerb,
- "exp": now.Add(5 * time.Minute).Unix(),
+ "exp": now.Add(setting.LFS.HTTPAuthExpiry).Unix(),
"nbf": now.Unix(),
}
if user != nil {