summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-29 00:02:13 +0800
committerGitHub <noreply@github.com>2023-03-29 00:02:13 +0800
commitb73d1ac1eb7d5c985749dc721bbea7ebd14f9c83 (patch)
tree313f5e06a34d5102e9166bd1c5d263d0ba76d385 /custom
parent428d26d4a8afe1b2777a992723168117d0bf9699 (diff)
downloadgitea-b73d1ac1eb7d5c985749dc721bbea7ebd14f9c83.tar.gz
gitea-b73d1ac1eb7d5c985749dc721bbea7ebd14f9c83.zip
Make minio package support legacy MD5 checksum (#23768) (#23770)
Backport #23768 (no source code conflict, only some unrelated docs/test-ini conflicts) Some storages like: * https://developers.cloudflare.com/r2/api/s3/api/ * https://www.backblaze.com/b2/docs/s3_compatible_api.html They do not support "x-amz-checksum-algorithm" header But minio recently uses that header with CRC32C by default. So we have to tell minio to use legacy MD5 checksum.
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 674d194136..19ee56ef8e 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1874,6 +1874,9 @@ ROUTER = console
;;
;; Minio skip SSL verification available when STORAGE_TYPE is `minio`
;MINIO_INSECURE_SKIP_VERIFY = false
+;;
+;; Minio checksum algorithm: default (for MinIO or AWS S3) or md5 (for Cloudflare or Backblaze)
+;MINIO_CHECKSUM_ALGORITHM = default
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;