aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorConcurrentCrab <102517200+ConcurrentCrab@users.noreply.github.com>2024-09-27 19:57:37 +0530
committerGitHub <noreply@github.com>2024-09-27 10:27:37 -0400
commit8a9fd7f771f4f694594a0652e95ddda2b7479b3e (patch)
treeeaad5bf33ca2a745645fc2368b4b01d598e35486 /modules/setting
parentfdb1df9eca2f7adabf08883042325af26c3fd509 (diff)
downloadgitea-8a9fd7f771f4f694594a0652e95ddda2b7479b3e.tar.gz
gitea-8a9fd7f771f4f694594a0652e95ddda2b7479b3e.zip
Add pure SSH LFS support (#31516)
Fixes #17554 /claim #17554 Docs PR https://gitea.com/gitea/docs/pulls/49 To test, run pushes like: `GIT_TRACE=1` git push. The trace output should mention "pure SSH connection".
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/lfs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go
index 2034ef782c..6bdcbed91d 100644
--- a/modules/setting/lfs.go
+++ b/modules/setting/lfs.go
@@ -13,6 +13,7 @@ import (
// LFS represents the configuration for Git LFS
var LFS = struct {
StartServer bool `ini:"LFS_START_SERVER"`
+ AllowPureSSH bool `ini:"LFS_ALLOW_PURE_SSH"`
JWTSecretBytes []byte `ini:"-"`
HTTPAuthExpiry time.Duration `ini:"LFS_HTTP_AUTH_EXPIRY"`
MaxFileSize int64 `ini:"LFS_MAX_FILE_SIZE"`