From f9429de8072adc467d3fcfaa986cb2dc13f61951 Mon Sep 17 00:00:00 2001 From: Alexandre Lavigne Date: Sun, 31 Mar 2024 18:42:20 +0200 Subject: [PATCH] s3: update Scaleway's configuration options - fixes #7507 In order to handle special character, the configuration must specify rclone configuration to use `list_url_encode`. --- backend/s3/s3.go | 4 ++-- docs/content/s3.md | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 2b0b0ff17..32d516352 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -3190,8 +3190,8 @@ func setQuirks(opt *Options) { if opt.MaxUploadParts > 1000 { opt.MaxUploadParts = 1000 } - urlEncodeListings = false - useAlreadyExists = false // untested + urlEncodeListings = true + useAlreadyExists = true case "SeaweedFS": listObjectsV2 = false // untested virtualHostStyle = false diff --git a/docs/content/s3.md b/docs/content/s3.md index eb9089406..fa68bf0c1 100644 --- a/docs/content/s3.md +++ b/docs/content/s3.md @@ -3359,10 +3359,11 @@ endpoint = s3.nl-ams.scw.cloud access_key_id = SCWXXXXXXXXXXXXXX secret_access_key = 1111111-2222-3333-44444-55555555555555 region = nl-ams -location_constraint = +location_constraint = nl-ams acl = private -server_side_encryption = -storage_class = +upload_cutoff = 5M +chunk_size = 5M +copy_cutoff = 5M ``` [C14 Cold Storage](https://www.online.net/en/storage/c14-cold-storage) is the low-cost S3 Glacier alternative from Scaleway and it works the same way as on S3 by accepting the "GLACIER" `storage_class`.