diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-07-03 05:56:32 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-07-03 06:56:32 +0300 |
commit | cbee921c28b9299a0f4ee751f8fd55a430b571f2 (patch) | |
tree | a5ab67fa1703781eecc90701b2f701384ec7e3ba /custom | |
parent | 69796ddd64b89de066952ea19b6332f51bbf3f81 (diff) | |
download | gitea-cbee921c28b9299a0f4ee751f8fd55a430b571f2.tar.gz gitea-cbee921c28b9299a0f4ee751f8fd55a430b571f2.zip |
Limit uploaded avatar image-size to 4096x3072 by default (#4353)
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index f823f68e4f..774a1df598 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -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 |