# How do you setup Cloudflare?

**URL:** https://meta.discourse.org/t/how-do-you-setup-cloudflare/32258
**Category:** Support
**Created:** [August 18, 2015, 5:28pm UTC](https://meta.discourse.org/t/how-do-you-setup-cloudflare/32258 "2015-08-18T17:28:32Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 25, 2015, 7:28am UTC](https://meta.discourse.org/t/how-do-you-setup-cloudflare/32258/7 "2015-08-25T07:28:10Z")

</div>

Wait a moment, this works and has worked for a very long time

> [@Full site CDN acceleration for Discourse](https://meta.discourse.org/t/full-site-cdn-acceleration-for-discourse/21467):
>
> [Fastly](http://www.fastly.com/) , [CloudFlare](https://www.cloudflare.com) and a few other CDNs offer a mode where they accelerate dynamic content. In a nutshell you point your domain IP address at the CDN and the CDN will intelligently decide how to deal with the request. Static content can be easily served from cache Dynamic content can be routed to the site. This provides some advantages over only shipping static assets which is covered in [the CDN howto](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857). You can elect for “[shielding](http://www.fastly.com/products/origin-shield/)” that protects your site from traffic spikes. Dynamic cont…

You must follow the guide, in particular ` long polling base url` MUST be set correctly to the origin otherwise the message bus will not work right. You must also mixin the cloudflare template so it does not look like everyone is coming from the same IP which is a disaster.

I think it’s fine to setup this way if you wish, but in general I prefer just to use cloudflare as a CDN endpoint and point the site at Discourse to avoid moving parts and a more complex setup for little gain.

---

_[View the full topic](https://meta.discourse.org/t/how-do-you-setup-cloudflare/32258)._
