mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-22 01:42:56 +02:00
Overall Done for Global Repo Size Limit Option
This commit is contained in:
committed by
DmitryFrolovTri
parent
66c476e5de
commit
d843a6736b
@@ -289,8 +289,8 @@ func loadRepositoryFrom(rootCfg ConfigProvider) {
|
||||
|
||||
// Determine and create root git repository path.
|
||||
sec := rootCfg.Section("repository")
|
||||
EnableSizeLimit = sec.Key("ENABLE_SIZE_LIMIT").MustBool()
|
||||
RepoSizeLimit = sec.Key("REPO_SIZE_LIMIT").MustInt64(0)
|
||||
EnableSizeLimit = sec.Key("ENABLE_SIZE_LIMIT").MustBool(true)
|
||||
RepoSizeLimit = sec.Key("REPO_SIZE_LIMIT").MustInt64(1024 * 1024 * 10)
|
||||
Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
|
||||
Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool()
|
||||
Repository.MaxCreationLimit = sec.Key("MAX_CREATION_LIMIT").MustInt(-1)
|
||||
|
||||
Reference in New Issue
Block a user