mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Limit uploaded avatar image-size to 4096x3072 by default (#4353)
This commit is contained in:
committed by
Lauris BH
parent
69796ddd64
commit
cbee921c28
@@ -402,6 +402,10 @@ SESSION_LIFE_TIME = 86400
|
||||
|
||||
[picture]
|
||||
AVATAR_UPLOAD_PATH = data/avatars
|
||||
; Max Width and Height of uploaded avatars. This is to limit the amount of RAM
|
||||
; used when resizing the image.
|
||||
AVATAR_MAX_WIDTH = 4096
|
||||
AVATAR_MAX_HEIGHT = 3072
|
||||
; Chinese users can choose "duoshuo"
|
||||
; or a custom avatar source, like: http://cn.gravatar.com/avatar/
|
||||
GRAVATAR_SOURCE = gravatar
|
||||
|
Reference in New Issue
Block a user