You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avatars and Repo avatars support storing in minio (go-gitea#12516)
* Avatar support minio
* Support repo avatar minio storage
* Add missing migration
* Fix bug
* Fix test
* Add test for minio store type on avatars and repo avatars; Add documents
* Fix bug
* Fix bug
* Add back missed avatar link method
* refactor codes
* Simplify the codes
* Code improvements
* Fix lint
* Fix test mysql
* Fix test mysql
* Fix test mysql
* Fix settings
* Fix test
* fix test
* Fix bug
-`AVATAR_STORAGE_TYPE`: **default**: Storage type defined in `[storage.xxx]`. Default is `default` which will read `[storage]` if no section `[storage]` will be a type `local`.
567
569
-`AVATAR_UPLOAD_PATH`: **data/avatars**: Path to store user avatar image files.
570
+
-`AVATAR_MAX_WIDTH`: **4096**: Maximum avatar image width in pixels.
571
+
-`AVATAR_MAX_HEIGHT`: **3072**: Maximum avatar image height in pixels.
572
+
-`AVATAR_MAX_FILE_SIZE`: **1048576** (1Mb): Maximum avatar image file size in bytes.
573
+
574
+
-`REPOSITORY_AVATAR_STORAGE_TYPE`: **default**: Storage type defined in `[storage.xxx]`. Default is `default` which will read `[storage]` if no section `[storage]` will be a type `local`.
568
575
-`REPOSITORY_AVATAR_UPLOAD_PATH`: **data/repo-avatars**: Path to store repository avatar image files.
569
576
-`REPOSITORY_AVATAR_FALLBACK`: **none**: How Gitea deals with missing repository avatars
570
577
- none = no avatar will be displayed
571
578
- random = random avatar will be generated
572
-
- image = default image will be used (which is set in `REPOSITORY_AVATAR_DEFAULT_IMAGE`)
579
+
- image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`)
573
580
-`REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded)
574
-
-`AVATAR_MAX_WIDTH`: **4096**: Maximum avatar image width in pixels.
575
-
-`AVATAR_MAX_HEIGHT`: **3072**: Maximum avatar image height in pixels.
576
-
-`AVATAR_MAX_FILE_SIZE`: **1048576** (1Mb): Maximum avatar image file size in bytes.
0 commit comments