# 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 januari 2017 om 15:32 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:** 5

<div class="post-metadata">

**Author:** ![azaleas](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@azaleas](https://meta.discourse.org/u/azaleas)\
**Post date:** [13 januari 2017 om 16:53 UTC](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706/5 "2017-01-13T16:53:30Z")

</div>

@Nam_Nguyen thanks for these steps. What exactly do you add to cloudlare? Just the root domain or all the other paths as well, like MX and TXT? Now, when I add my domain to cloudflare, it shows these as passing via CDN:

**type A =\> forum points to digitalOceanIP**  
**type A =\> [domain.com](http://domain.com) points to digitalOceanIP**  
**type A =\> www.forum points to digitalOceanIP**  
**type A =\> www points to digitalOceanIP**

_(I added redirects for root and www paths to my forum subdomain)_

MX and TXT aren’t passing via Cloudflare.

**is this similar to yours?**

What I did after this step is I copied the CloudFlare name servers that were generated for my domain and added them on my registrar.

And after couple of minutes my site was down.

I didnt follow the steps exactly. Rather I added cloudflare the last. Regular discourse installation + LetsEncrypt SSL + Cloudflare CDN (here I stuck, so I had to go back one step)

---

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