Configure an S3 compatible object storage provider for uploads

I’m working on a multisite instance where I tried to restore a database from another instance and when I restored database-only the main page rendered json that said that it was required. But that’s lkely an edge case. I was always confused by the DISCOURSE_S3_BUCKET env variable…

1 Like

I’m still curious about this if anyone has any insight, also I just had another question come up.

If I were wanting to change the domain of my Discourse installation, how would that impact Object Storage access policies? Would I need to change rules, or would that be taken care of for me by Discourse?

1 Like

@Falco

Have you seen this? https://blog.cloudflare.com/introducing-r2-object-storage/

I’ve already signed up for a test, looking forward to testing it.

2 Likes

I don’t know anyone who’s seen it.

I signed up for that test long ago, back in October. It doesn’t seem to be an actual product.

1 Like

Interesting.

I got an email about it roughly 2 weeks ago in regards about signing up for the test, it’s the only reason why I learned about it. I don’t follow the cloudflare blog. Hopefully it doesn’t get shoved into the back like the railgun though Argo is just so much better.

1 Like

Maybe I missed a memo! Or maybe I got it and just don’t remember. (The most recent email I see with r2 in it says “Thank you for your interest in the Cloudflare R2 Storage early access program. We will be in touch regarding your request.” last November…)

1 Like

Fair enough. I just went back to the blog, and also noticed the date for last September. Considering how recent the email asking me to sign up (I did do so), I thought it was a more recent product announcement/offering. I don’t really keep up with cloudflare news, to be honest. Heres to hoping it marteralizes and that it’s actually good, their scope and pitch about the fees could be really enticing.

2 Likes

I signed up as soon as it was announced and I’m on the same boat

3 Likes

I was so excited that I thought I brought something to Meta that people had barely heard about yet xD

3 Likes

There does exist documentation: https://developers.cloudflare.com/r2/get-started/

It looks very unpleasant to configure.

1 Like

I guess they misunderstood what they meant when they said that it was supposed to be an easy drop in replacement for amazon s3 and other s3 compatible services.

2 Likes

Given what they did with tunnels, I guess they’ll introduce a GUI once the product gets enough traction. Let’s wait & see how it grows.

2 Likes

Could I submit a PR for a new template called something like web.upload-assets.template.yml that includes that stanza so that then people could just include it? It’s a bit fussy to paste it in to the yml.

And if that’s OK, could I also submit a PR including it commented out standalone.yml and web_only.yml so that it can easily be included?

2 Likes

I’m having difficulties configuring Oracle’s object storage.
I didn’t see any guides here.

1 Like

There is no Oracle Cloud guide as it’s not that popular option. If you are experimenting with it, try starting with the DigitalOcean settings and going from there.

When you get it to work you can update the wiki in the OP with the guide.

3 Likes

I did the configuration and it didn’t work, besides that I didn’t understand the logic of the CDN

Walking off the beaten path of already tested services is not for the faint of the heart.

I strongly recommend using AWS S3, which is what we use internally.

2 Likes

Then you likely didn’t do the configuration correctly. If you included the details of your setup (minus the keys) we could offer help, and test that the CDNs were correct. Also, an easy thing to overlook is the bit at the top about pushing assets to S3. Which is also hard to understand.

3 Likes

Would love to say your post is the best.

1 Like

I found the problem, is that Oracle Object Storage, uses path style.

And Discourse doesn’t give me the option to use path style, it wants to force me to use virtual host style.

I wish I could choose that.

Even the minio has to be configured to suit the virtual host style.

1 Like