# Discourse и Cloudflare

**URL:** https://meta.discourse.org/t/discourse-and-cloudflare/133366
**Category:** Self-hosting
**Created:** [14.Ноябрь.2019 05:06:12 UTC](https://meta.discourse.org/t/discourse-and-cloudflare/133366 "2019-11-14T05:06:12Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [14.Ноябрь.2019 08:13:07 UTC](https://meta.discourse.org/t/discourse-and-cloudflare/133366/3 "2019-11-14T08:13:07Z")

</div>

Мы используем Cloudflare с Discourse, но есть несколько моментов, на которые стоит обратить внимание. Вот наша конфигурация:

> [@S3 image bandwidth costs are getting annoying](https://meta.discourse.org/t/s3-image-bandwidth-costs-are-getting-annoying/122052/4?u=bartv):
>
> I’m using Cloudflare on [my Discourse site](https://blenderartists.org) and it works fine. You basically route all your traffic through Cloudflare and tell it what to process or cache and that’s it. There are a few things to keep in mind though: Configure Cloudflare to NOT cache anything (set up exceptions using page rules, see below). Don’t let Cloudflare touch your Javascript - specifically, turn off Rocket Loader. I’m not sure about Brotli compression yet, I disabled it. Set up page rules to cache the avatar and upload …

---

_[View the full topic](https://meta.discourse.org/t/discourse-and-cloudflare/133366)._
