Set up custom domain for R2 bucket with external DNS

I want to set up a custom domain for my R2 bucket, but I can’t use Cloudflare’s nameservers.

I set up a CNAME record, pointing to my pub-<id>.r2.dev domain.

However, when I try to access it, Chrome gives me an error:

This site can’t provide a secure connection

redacted uses an unsupported protocol.

ERR_SSL_VERSION_OR_CIPHER_MISMATCH

When I try to run a test on ssllabs.com, it says “Failed to communicate with the secure server”

Additionally, if I try to “Connect Domain” to a bucket on the R2 bucket dashboard, I get an error: “The specified zone id is not valid. (Code: 10051)”

Even though I was trying to avoid it, I ended up transferring my nameservers and DNS configuration to Cloudflare, then everything worked as expected.

It would be great to be able to use R2 with a custom domain and external DNS!

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.