# 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:** 1

<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 15:32 UTC](https://meta.discourse.org/t/how-exactly-should-i-add-cloudflare-cdn-to-discourse/55706/1 "2017-01-13T15:32:51Z")

</div>

I’ve been trying to add cloudflare cdn to my discourse forum. Couldnt find any direct tutorials or faqs. I added my domain to cloudflare, configured the cdn option, got my cloudflare name servers and then changed my digital ocean name servers to the ones that I got. After a while my forum was down.

I added the template to my yml file for cloudflare ssl, tried to rebuild everything. No luck. Site was down.

So I went to my previous setup with Lets Encrypt free SSL, removed all the code for cloudflare, changed my name servers back to digital ocean and now everything is working.

How do you guys installed this cdn? I’m building a small forum/first forum, so I don’t want to pay for CDN. So if there’re any other free alternatives for this that would be ok too.

Any help would be appreciated.

ps: I was leaning towards the idea that site was down due to the name servers changing from Digital Ocean to Cloudflare. Any ideas?

---

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