# \#cloudflare

**URL:** https://meta.discourse.org/tag/cloudflare/827.md

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

---

## [Mutisite and Cloudflare R2 Objects](https://meta.discourse.org/t/mutisite-and-cloudflare-r2-objects/412414)

<div class="topic-metadata">

**Author:** [@kcahtoor](https://meta.discourse.org/u/kcahtoor)\
**Replies:** 0\
**Last updated:** [September 15, 2026, 2:26am UTC](https://meta.discourse.org/t/mutisite-and-cloudflare-r2-objects/412414 "2026-09-15T02:26:41Z")

</div>

Using Cloudflare R2 on just one site in a Discourse multisite install If you run a multisite Discourse install and only want one of your sites on Cloudflare R2 (uploads, backups, and optionally static assets), the standa…

---

## [How to Configure Cloudflare R2 for your Discourse Community](https://meta.discourse.org/t/how-to-configure-cloudflare-r2-for-your-discourse-community/349512)

<div class="topic-metadata">

**Author:** [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Replies:** 31\
**Last updated:** [September 15, 2026, 1:50am UTC](https://meta.discourse.org/t/how-to-configure-cloudflare-r2-for-your-discourse-community/349512 "2026-09-15T01:50:17Z")

</div>

Cloudflare R2 buckets can be used to store static assets like images and GIFs for the Discourse community, but they cannot be used to store community backups! Introduction: Cloudflare R2 object storage can be used as a…

---

## [Maintenance page workaround - can this be done?](https://meta.discourse.org/t/maintenance-page-workaround-can-this-be-done/408967)

<div class="topic-metadata">

**Author:** [@alltiagocom](https://meta.discourse.org/u/alltiagocom)\
**Replies:** 44\
**Last updated:** [August 24, 2026, 2:49am UTC](https://meta.discourse.org/t/maintenance-page-workaround-can-this-be-done/408967 "2026-08-24T02:49:13Z")

</div>

Not being an experienced developer (I would say I’m on the basic level, actually), trying the nginx solution to present a maintenance page was a bit of a nightmare. Today, I had this idea and decided to ask Claude if thi…

---

## [I can't upload photo after setting Cloudflare R2](https://meta.discourse.org/t/i-cant-upload-photo-after-setting-cloudflare-r2/408303)

<div class="topic-metadata">

**Author:** [@haha](https://meta.discourse.org/u/haha)\
**Replies:** 4\
**Last updated:** [July 23, 2026, 11:04am UTC](https://meta.discourse.org/t/i-cant-upload-photo-after-setting-cloudflare-r2/408303 "2026-07-23T11:04:56Z")

</div>

Hello everyone, thanks for your time. After setting Cloudflare R2 on my discourse, I can’t upload photo in creating topic, here is my setting: I confirm I use the Account API Tokens(it’s active), not User …

---

## [Self Hosted Forum Log In Issues](https://meta.discourse.org/t/self-hosted-forum-log-in-issues/406526)

<div class="topic-metadata">

**Author:** [@Apiento](https://meta.discourse.org/u/Apiento)\
**Replies:** 3\
**Last updated:** [July 2, 2026, 9:02pm UTC](https://meta.discourse.org/t/self-hosted-forum-log-in-issues/406526 "2026-07-02T21:02:21Z")

</div>

Hey All. I have quite a vibrant music loving community called Test Pressing but Discourse has started doing this really weird thing where it is looging us all out. Even as admin I can’t log in to my own forum now… Is thi…

---

## [How to get user IP after updating commit b4a3389](https://meta.discourse.org/t/commit-b4a3389-ip/406267)

<div class="topic-metadata">

**Author:** [@CLOUD\_PHT](https://meta.discourse.org/u/CLOUD_PHT)\
**Replies:** 3\
**Last updated:** [June 29, 2026, 5:13pm UTC](https://meta.discourse.org/t/commit-b4a3389-ip/406267 "2026-06-29T17:13:06Z")

</div>

After updating All users' last used addresses have changed to the Docker gateway, such as 172.17.0.1 My architecture is as follows: Cloudflare → VPS Nginx → Discourse Docker Nginx → Discourse

---

## [How to fix all traffic showing as coming from Cloudflare servers instead of the user's browser IP](https://meta.discourse.org/t/cloudflare-ip/399954)

<div class="topic-metadata">

**Author:** [@sniper756](https://meta.discourse.org/u/sniper756)\
**Replies:** 15\
**Last updated:** [May 1, 2026, 7:48pm UTC](https://meta.discourse.org/t/cloudflare-ip/399954 "2026-05-01T19:48:10Z")

</div>

How to resolve the issue where all traffic appears to originate from Cloudflare servers instead of the user's browser IP after deploying Discourse using a 1Panel container, setting up a website with a reverse proxy, and using a Cloudflare CDN domain?

---

## [Using Discourse with Cloudflare: Best Practices](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**Replies:** 28\
**Last updated:** [April 26, 2026, 7:31pm UTC](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405 "2026-04-26T19:31:10Z")

</div>

Using Discourse with Cloudflare :bookmark: This guide explains how to configure and use Discourse with Cloudflare, including security best practices and troubleshooting tips. :person\_raising\_hand: Required user level:…

---

## [Global Cloudflare outage 2025-11-18](https://meta.discourse.org/t/cloudflare/388828)

<div class="topic-metadata">

**Author:** [@利仔1](https://meta.discourse.org/u/%E5%88%A9%E4%BB%941)\
**Replies:** 19\
**Last updated:** [November 19, 2025, 5:09am UTC](https://meta.discourse.org/t/cloudflare/388828 "2025-11-19T05:09:34Z")

</div>

I don't know if it's my network or what? I'm connected to the node normally.

---

## [Backup domain name: cloudflare killed my forum](https://meta.discourse.org/t/backup-domain-name-cloudflare-killed-my-forum/388821)

<div class="topic-metadata">

**Author:** [@Isambard](https://meta.discourse.org/u/Isambard)\
**Replies:** 7\
**Last updated:** [November 18, 2025, 2:56pm UTC](https://meta.discourse.org/t/backup-domain-name-cloudflare-killed-my-forum/388821 "2025-11-18T14:56:21Z")

</div>

OK. I have cloudflare as a proxy in front of discourse. Cloudflare is currently down and the problem I have is I cannot even log onto cloudflare to re-configure the DNS to bypass their servers. So currently, I cannot ac…

---

## [Step-by-step Discourse migration with R2 and Cloudflare integration](https://meta.discourse.org/t/step-by-step-discourse-migration-with-r2-and-cloudflare-integration/382491)

<div class="topic-metadata">

**Author:** [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)\
**Replies:** 0\
**Last updated:** [September 13, 2025, 1:31am UTC](https://meta.discourse.org/t/step-by-step-discourse-migration-with-r2-and-cloudflare-integration/382491 "2025-09-13T01:31:47Z")

</div>

This is a post-mortem/runbook of a real migration. I skip common Discourse prep (the official docs cover it). I focus on the exact switches, Cloudflare R2 gotchas, the rails/rake one-liners that mattered, what failed, an…

---

## [Cloudflare proxy detected?](https://meta.discourse.org/t/cloudflare-proxy-detected/382138)

<div class="topic-metadata">

**Author:** [@Yasushi\_SHOJI](https://meta.discourse.org/u/Yasushi_SHOJI)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 12:10pm UTC](https://meta.discourse.org/t/cloudflare-proxy-detected/382138 "2025-09-10T12:10:12Z")

</div>

Since we’ve moved DNS to Cloudflare, we are getting “Cloudflare proxy detected” email. We are using hosted discourse We’ve moved our DNS for our discourse istance to CF So, I’m pretty sure we are not under Cloudflare …

---

## [Getting Cloudflare 521 Error After Upgrade to 3.5.0.beta8-dev](https://meta.discourse.org/t/getting-cloudflare-521-error-after-upgrade-to-3-5-0-beta8-dev/375963)

<div class="topic-metadata">

**Author:** [@LW2333](https://meta.discourse.org/u/LW2333)\
**Replies:** 5\
**Last updated:** [July 27, 2025, 3:07am UTC](https://meta.discourse.org/t/getting-cloudflare-521-error-after-upgrade-to-3-5-0-beta8-dev/375963 "2025-07-27T03:07:44Z")

</div>

Hi everyone, After updating my Discourse site to 3.5.0.beta8-dev, I’m suddenly getting a 521 “Web server is down” error when accessing the site through Cloudflare. This is unexpected since I had previously configured it…

---

## [Corrupt UI In Incognito and Private Browsing](https://meta.discourse.org/t/corrupt-ui-in-incognito-and-private-browsing/364898)

<div class="topic-metadata">

**Author:** [@JImSculley](https://meta.discourse.org/u/JImSculley)\
**Replies:** 1\
**Last updated:** [May 5, 2025, 8:37pm UTC](https://meta.discourse.org/t/corrupt-ui-in-incognito-and-private-browsing/364898 "2025-05-05T20:37:50Z")

</div>

I have a relatively new self-hosted Discourse site behind a Cloudfare proxy. Today, a user complained that when they went to log in, the font was enormous and the username/password fields were missing. To verify it was…

---

## [Endless loading behind Cloudflare](https://meta.discourse.org/t/endless-loading-behind-cloudflare/364596)

<div class="topic-metadata">

**Author:** [@MichaIng](https://meta.discourse.org/u/MichaIng)\
**Replies:** 15\
**Last updated:** [May 11, 2025, 1:36pm UTC](https://meta.discourse.org/t/endless-loading-behind-cloudflare/364596 "2025-05-11T13:36:24Z")

</div>

We moved our server from one VPS provider to another and I upgraded the instance via launcher rebuild to the latest version as well, from 3.5.0.beta3 to 3.5.0.beta4. The instance was always running fine behind Cloudflar…

---

## [Error when doing "bundle exec rake s3:upload\_assets" - Could not locate Gemfile or .bundle/ directory](https://meta.discourse.org/t/error-when-doing-bundle-exec-rake-s3-upload-assets-could-not-locate-gemfile-or-bundle-directory/361173)

<div class="topic-metadata">

**Author:** [@joshhabka](https://meta.discourse.org/u/joshhabka)\
**Replies:** 6\
**Last updated:** [April 10, 2025, 6:23pm UTC](https://meta.discourse.org/t/error-when-doing-bundle-exec-rake-s3-upload-assets-could-not-locate-gemfile-or-bundle-directory/361173 "2025-04-10T18:23:27Z")

</div>

I am trying to do "bundle exec rake s3:upload\_assets" as root and it yields the following erros: Could not locate Gemfile or .bundle/ directory. I also tried doing it without root, using "sudo -E -u discourse bundle exe…

---

## [Seahorse::Client::NetworkingError: Empty or incomplete response body (Seahorse::Client::NetworkingError)](https://meta.discourse.org/t/seahorse-empty-or-incomplete-response-body-seahorse-networkingerror/361244)

<div class="topic-metadata">

**Author:** [@joshhabka](https://meta.discourse.org/u/joshhabka)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 12:59pm UTC](https://meta.discourse.org/t/seahorse-empty-or-incomplete-response-body-seahorse-networkingerror/361244 "2025-04-10T12:59:28Z")

</div>

When running the command sudo -E -u discourse bundle exec rake s3:upload\_assets I am using Cloudflare R2, configures as S3, from this post: I originally tried the same command, sudo -E -u discourse bundle exec rake s3…

---

## [Login and Logout Errors from Cache Settings Conflict with Cloudflare](https://meta.discourse.org/t/login-and-logout-errors-from-cache-settings-conflict-with-cloudflare/345986)

<div class="topic-metadata">

**Author:** [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)\
**Replies:** 31\
**Last updated:** [January 7, 2025, 5:18pm UTC](https://meta.discourse.org/t/login-and-logout-errors-from-cache-settings-conflict-with-cloudflare/345986 "2025-01-07T17:18:31Z")

</div>

Dear Community Members, I am reaching out for help with a critical issue affecting our Discourse forum at starorigin.net. Users are experiencing a severe login/logout bug that is paralyzing our community. When attemptin…

---

## ['Cloudflare Super Bot Fight' blocking Discourse Hub Agent](https://meta.discourse.org/t/cloudflare-super-bot-fight-blocking-discourse-hub-agent/344608)

<div class="topic-metadata">

**Author:** [@eisammy](https://meta.discourse.org/u/eisammy)\
**Replies:** 2\
**Last updated:** [December 29, 2024, 3:32pm UTC](https://meta.discourse.org/t/cloudflare-super-bot-fight-blocking-discourse-hub-agent/344608 "2024-12-29T15:32:12Z")

</div>

These days I had a problem to add my instance at Discover and this was the reason: Everytime that I enable this function bot was blocked some chance report this false-positive to cloudflare?

---

## [Cloudflare with subfolder setup](https://meta.discourse.org/t/cloudflare-with-subfolder-setup/331528)

<div class="topic-metadata">

**Author:** [@tig3](https://meta.discourse.org/u/tig3)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 1:17pm UTC](https://meta.discourse.org/t/cloudflare-with-subfolder-setup/331528 "2024-10-18T13:17:59Z")

</div>

I just wanted to share steps that I did, on setting up a subfolder along with cloudflare, especially when the main website is live already and the root domain can not be pointed to the forum server (even temporarily). …

---

## [Mobile access keeps loading after using CloudFlare](https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590)

<div class="topic-metadata">

**Author:** [@laolupaojiao](https://meta.discourse.org/u/laolupaojiao)\
**Replies:** 1\
**Last updated:** [September 22, 2024, 3:42am UTC](https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590 "2024-09-22T03:42:31Z")

</div>

I used CloudFlare and after testing, when I opened the webpage in my mobile browser, it kept loading, It looks like a file cannot be loaded, causing the loading mask to keep showing I tried to turn on or off certain fea…

---

## [API calls return 403 behind Cloudflare](https://meta.discourse.org/t/api-calls-return-403-behind-cloudflare/325971)

<div class="topic-metadata">

**Author:** [@MKorndoerfer](https://meta.discourse.org/u/MKorndoerfer)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 8:48am UTC](https://meta.discourse.org/t/api-calls-return-403-behind-cloudflare/325971 "2024-09-11T08:48:22Z")

</div>

This is our scenario: Our discourse is running on a separate EC2 instance from our main server. The discourse instance creates its own server certificate using let’s encrypt with the built-in mechanism. The main server…

---

## [Cloudflare - can't provide a secure connection](https://meta.discourse.org/t/cloudflare-cant-provide-a-secure-connection/320304)

<div class="topic-metadata">

**Author:** [@ScrapBlox](https://meta.discourse.org/u/ScrapBlox)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 7:00am UTC](https://meta.discourse.org/t/cloudflare-cant-provide-a-secure-connection/320304 "2024-08-06T07:00:42Z")

</div>

I’m using a self hosted version of discourse and have come across this issue where cloudflare SSL seems to only work with some browsers. I’ve tried asking this in cloudflare community already. The forum can be found: h…

---

## [Uploads in cloudflare R2 are not added to the backup: Failed to download \*\*\*\*\*\*\* because Aws::S3::Errors::Http501Error](https://meta.discourse.org/t/uploads-in-cloudflare-r2-are-not-added-to-the-backup-failed-to-download-because-aws-http501error/311605)

<div class="topic-metadata">

**Author:** [@kuaza](https://meta.discourse.org/u/kuaza)\
**Replies:** 8\
**Last updated:** [July 10, 2024, 11:56am UTC](https://meta.discourse.org/t/uploads-in-cloudflare-r2-are-not-added-to-the-backup-failed-to-download-because-aws-http501error/311605 "2024-07-10T11:56:15Z")

</div>

I’m trying a few things on cloudflare and was thinking of leaving R2 in the future. That’s why, when I was examining the backups, I saw that the installations were not included and it gave an error. When making a backup …

---

## [Force Discourse to use SSL/HTTPS through CloudFlare](https://meta.discourse.org/t/force-discourse-to-use-ssl-https-through-cloudflare/49212)

<div class="topic-metadata">

**Author:** [@kuyashi](https://meta.discourse.org/u/kuyashi)\
**Replies:** 7\
**Last updated:** [July 21, 2017, 8:15pm UTC](https://meta.discourse.org/t/force-discourse-to-use-ssl-https-through-cloudflare/49212 "2017-07-21T20:15:05Z")

</div>

How to use CloudFlare’s platform to force all traffic over HTTPS connection using page rules. This is an up to date and user-friendly (fool-proof) way that I use each time and it works perfectly. Sign up to CloudFlare h…
