Payload with Cloudflare R2

default discord avatar
nnad
2 months ago
4

I was wondering if you could use R2 with the AWS adapter, since Cloudflare supports using AWS SDK. Had anyone tried doing this or is this just a bad idea?

  • default discord avatar
    nlvogel
    2 months ago

    I do this. I didn't have to configure anything different than the walkthrough in the AWS adapter. Set "region" to auto.

  • default discord avatar
    nnad
    2 months ago

    That's cool! Thanks for the answer.

  • default discord avatar
    unit6
    2 months ago

    Same here, it just worked out of the box with the official cloud storage plugin

  • default discord avatar
    jm.sv
    last month

    @nlvogel @unit6 did your configs look like this? I'm getting an "unauthorized" response when trying to upload. Did you have to configure your local IP / do anything on the Cloudflare dasboard aside from creating the API key with the rihgt permissions?



    Nevermind! I removed my personal IP from the "Client IP" options in the API Key and it works as expected

    payload.config.ts_next-payload-starter-Friday-October-13-2023-02.08.42PM2x.png
    Payload_with_Cloudflare_R2_Payload_-_Discord-Friday-October-13-2023-02.09.15PM2x.png
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.