summaryrefslogtreecommitdiffstats
path: root/custom/conf/app.ini.sample
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 /custom/conf/app.ini.sample
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 'custom/conf/app.ini.sample')
-rw-r--r--custom/conf/app.ini.sample2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index 184fa8e8cc..ef88e5c327 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -189,6 +189,8 @@ LFS_START_SERVER = false
LFS_CONTENT_PATH = data/lfs
; LFS authentication secret, change this yourself
LFS_JWT_SECRET =
+; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
+LFS_HTTP_AUTH_EXPIRY = 20m
; Define allowed algorithms and their minimum key length (use -1 to disable a type)
[ssh.minimum_key_sizes]