mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Repository avatar fallback configuration (#7087)
* Only show repository avatar in list when one was selected Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds fallback configuration option for repository avatar Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Implements repository avatar fallback Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Adds admin task for deleting generated repository avatars Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Solve linting issues Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Save avatar before updating database * Linting * Update models/repo.go Co-Authored-By: zeripath <art27@cantab.net>
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							356854fc5f
						
					
				
				
					commit
					8eba27c792
				
			@@ -505,6 +505,10 @@ SESSION_LIFE_TIME = 86400
 | 
			
		||||
[picture]
 | 
			
		||||
AVATAR_UPLOAD_PATH = data/avatars
 | 
			
		||||
REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
 | 
			
		||||
; How Gitea deals with missing repository avatars
 | 
			
		||||
; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used
 | 
			
		||||
REPOSITORY_AVATAR_FALLBACK = none
 | 
			
		||||
REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png
 | 
			
		||||
; Max Width and Height of uploaded avatars.
 | 
			
		||||
; This is to limit the amount of RAM used when resizing the image.
 | 
			
		||||
AVATAR_MAX_WIDTH = 4096
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user