# How Exactly should I add cloudflare CDN to discourse?

**URL:** https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706
**Category:** Self-hosting
**Tags:** cdn
**Created:** [13 בינואר,‏ 2017,‏ 3:32pm UTC](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706 "2017-01-13T15:32:51Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [13 בינואר,‏ 2017,‏ 3:58pm UTC](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706/2 "2017-01-13T15:58:23Z")

</div>

> [@azaleas](#):
>
> I’ve been trying to add cloudflare cdn to my discourse forum. Couldnt find any direct tutorials or faqs.

Did you check these?

> [@Install Discourse on Amazon Web Services (AWS)](https://meta.discourse.org/t/install-discourse-on-amazon-ws-with-cloudflare/37323):
>
> warning This installation method is not officially endorsed. Use at your own risk. The Discourse team only recommend installation using the [official install guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) This guide originally included information about cloudflare, but @pfaffman thinks that conflating AWS and cloudflare is a bad idea. If you’re an AWS user, AWS Cloudfront makes much more sense than Cloudflare. @pfaffman edited this a good bit on 2022.11.21; if something seems broken, blame me. If it works, thank the original auth…

> [@Force Discourse to use SSL/HTTPS through CloudFlare](https://meta.discourse.org/t/force-discourse-to-use-ssl-https-through-cloudflare/49212):
>
> 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 [here](https://cloudflare.com) - they offer SSL/HTTPS on their Free plan, so that will be just fine for us. Add your site [here](https://www.cloudflare.com/a/add-site) - the system will scan for DNS records, make sure all are correct and add any records not picked automatically by the scan i.e. MX records. You will the have to add the CloudFl…

> [@azaleas](#):
>
> I’m building a small forum/first forum, so I don’t want to pay for CDN.

If it’s a small forum, why bother with CDN? It would seem that if you had a big enough forum to require a CDN, then you’d have the money to pay for one.

---

_[View the full topic](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706)._
