# Configure an S3 compatible object storage provider for uploads

**URL:** https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916
**Category:** Self-Hosting
**Tags:** cdn, configuring, how-to, reference
**Created:** [April 22, 2020, 10:37pm UTC](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916 "2020-04-22T22:37:37Z")
**Posts on this page:** 1
**Showing post:** 504

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 20, 2026, 11:42am UTC](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916/504 "2026-05-20T11:42:44Z")

</div>

> [@Discourse](#):
>
> ### Cloudflare
> 
> Cloudflare’s offering is incompatible. In testing, @fearlessfrog filed a ticket with Cloudflare and in December 2022 they said:
> 
> > [@](#):
> >
> > Files that you gzip are not currently handled correctly by R2. You have to upload uncompressed files. Cloudflare has transparent compression, they pick identity, gzip, or Brotli based on what the client can handle. This is a difference from S3.

just a note that this is no longer the case - Cloudflare has patched this and R2 buckets are now compatible with S3. i have external backups to Cloudflare R2 and just did a successful full restore to another server. (it’s also free up to 10GB / month)

just need the `bucket name` (for `s3 backup bucket`), `access key ID`, `secret access key` and `jurisdiction-specific endpoint` from Cloudflare R2 object storage to put into the Discourse s3 settings or `app.yml`/`web_only.yml` etc.

---

_[View the full topic](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)._
