mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							1b85b248e4
						
					
				
				
					commit
					8d9d6aa903
				
			@@ -154,6 +154,7 @@ var (
 | 
			
		||||
	MinPasswordLength     int
 | 
			
		||||
	ImportLocalPaths      bool
 | 
			
		||||
	DisableGitHooks       bool
 | 
			
		||||
	PasswordHashAlgo      string
 | 
			
		||||
 | 
			
		||||
	// Database settings
 | 
			
		||||
	UseSQLite3       bool
 | 
			
		||||
@@ -779,6 +780,7 @@ func NewContext() {
 | 
			
		||||
	MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)
 | 
			
		||||
	ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false)
 | 
			
		||||
	DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(false)
 | 
			
		||||
	PasswordHashAlgo = sec.Key("PASSWORD_HASH_ALGO").MustString("pbkdf2")
 | 
			
		||||
	InternalToken = loadInternalToken(sec)
 | 
			
		||||
	IterateBufferSize = Cfg.Section("database").Key("ITERATE_BUFFER_SIZE").MustInt(50)
 | 
			
		||||
	LogSQL = Cfg.Section("database").Key("LOG_SQL").MustBool(true)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user