jrrdnx / craft-cloudflare-r2

MIT License
6 stars 3 forks source link

Jurisdictions support #9

Open Diewy opened 7 months ago

Diewy commented 7 months ago

The Cloudflare R2 Buckets which are restricted to the EU have an alternative URL. But the URL is hard-coded right now.

See: https://developers.cloudflare.com/r2/reference/data-location/#using-jurisdictions-with-the-s3-api

Would it be possible to support jurisdictions?

jrrdnx commented 7 months ago

@Diewy I can definitely add an additional Settings field for this, but I'm curious if it would work to include the jurisdiction in your Account ID. In that Cloudflare docs link, instead of 4893d737c0b9e484dfc37ec392b5fa8a use 4893d737c0b9e484dfc37ec392b5fa8a.eu.

Diewy commented 7 months ago

Ha, didn't think of that. That works! 👍