rclone / rclone

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
https://rclone.org
MIT License
46.79k stars 4.18k forks source link

Need a way to fully configure the B2 custom / download URL for CloudFlare use #7211

Open mikecole79 opened 1 year ago

mikecole79 commented 1 year ago

When using CloudFlare URL for B2 download, the root URL always add /file/ but my CF proxy already accounts for that

I was using version 1.63. Actually went so far as to download and compile myself with an edit to b2.go, but unsure if I did it correctly.

What problem are you are trying to solve?

B2 provides free downloads when using a CDN. On my CloudFlare setup, the download URL doesn't include /file/ but in rclone it adds ROOTURL + "/file/" + pathToFile

This breaks my setup.

How do you think rclone should be changed to solve that?

I think it would be best if you had to specify /file or /file/bucket in your URL and rclone treated the root URL you provide as everything needed before the actual file name.

How to use GitHub

ncw commented 1 year ago

This is actually reasonably complicated to change since the /bucket/file is burnt into rclone at a low level.

Can you put redirects in your cloudflare proxy?

mikecole79 commented 1 year ago

I will try to figure out how to change it. It was a pain to setup, so I'll have to dig into the documentation and figure it out.

Thank you for looking at it.

Mike Cole

On Sat, Aug 5, 2023, 04:49 Nick Craig-Wood @.***> wrote:

This is actually reasonably complicated to change since the /bucket/file is burnt into rclone at a low level.

Can you put redirects in your cloudflare proxy?

— Reply to this email directly, view it on GitHub https://github.com/rclone/rclone/issues/7211#issuecomment-1666482758, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ3WSGF3MREUOMZUJHJL63XTYXL5ANCNFSM6AAAAAA3E5VHUU . You are receiving this because you authored the thread.Message ID: @.***>

gymnae commented 1 year ago

Have you found a solution? I just ran into the same issue: https://forum.rclone.org/t/backblaze-b2-integration-builds-wrong-url-for-cloudflare-cdn/42056