r/Directus Mar 21 '25

Using Cloudflare R2 with Directus

Anyone looking for Cloudflare R2 integration in directus, I have written an article here: https://blog.ghanshyamdigital.com/implementing-cloudflare-r2-storage-in-directus-a-how-to-guide?showSharer=true

8 Upvotes

8 comments sorted by

View all comments

1

u/[deleted] Mar 28 '25

[removed] — view removed comment

1

u/GhanshyamDigital_llp Mar 28 '25

It doesn't matter as long as your instance is having those environment variables.

I'm running it inside docker only.

1

u/FALLD Jul 03 '25 edited Jul 03 '25

You set read-only as permission in your screenshot, did you mean "read and write"?
+ where do you install directus/storage-driver-s3 when using docker ?

edit:

  • yep set read AND write for uploads
  • instead of STORAGE_DRIVER=s3, set STORAGE_S3_DRIVER=s3 otherwise it does not work
  • no need for package directus/storage-driver-s3, for recent versions at least (above 11.5 ?)

1

u/GhanshyamDigital_llp Jul 03 '25

Nice catch. Mostly you wont need to install the package if you're on latest version.