# Ghost on Digital Ocean - Do you use Cloudflare?

**URL:** <https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394>\
**Category:** Developer help\
**Created:** [January 15, 2020, 5:39am UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394 "2020-01-15T05:39:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bershatsky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bershatsky/32/2257_2.png) [@bershatsky](https://forum.ghost.org/u/bershatsky)\
**Post date:** [January 15, 2020, 5:39am UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/1 "2020-01-15T05:39:30Z")

</div>

Yes / No / Thoughts?

---

<div class="post-metadata">

**Author:** ![StuartMorrisAU](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stuartmorrisau/32/26117_2.png) [@StuartMorrisAU](https://forum.ghost.org/u/StuartMorrisAU)\
**Post date:** [January 15, 2020, 8:38am UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/2 "2020-01-15T08:38:31Z")

</div>

I just moved from Pro to a self-hosted DigitalOcean droplet and use Cloudflare. Pro uses CF enterprise, but the management is abstracted away from the customer. The main reason I switched was so I could use Cloudflare Workers.

---

<div class="post-metadata">

**Author:** ![bershatsky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bershatsky/32/2257_2.png) [@bershatsky](https://forum.ghost.org/u/bershatsky)\
**Post date:** [January 15, 2020, 8:53am UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/3 "2020-01-15T08:53:18Z")

</div>

Can you explain what that means? Is it like using netlify to host a static version of your site or am I way off?

---

<div class="post-metadata">

**Author:** ![StuartMorrisAU](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stuartmorrisau/32/26117_2.png) [@StuartMorrisAU](https://forum.ghost.org/u/StuartMorrisAU)\
**Post date:** [January 15, 2020, 9:10am UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/4 "2020-01-15T09:10:40Z")

</div>

I don’t know anything about Netlify, so I can’t comment on that.

I host on DigitalOcean using their marketplace Ghost droplet. Cloudflare sits in front and provides some additional security.

Cloudflare Workers allows you to run JavaScript at their edge (between your host and the browser), so I can, amongst other things, set various [security headers](https://securityheaders.com/) (even on domains where I don’t have access to the hosting server).

Ghost(Pro) also runs on DigitalOcean and they use Cloudflare’s enterprise product, but as a Ghost(Pro) user, you don’t have access to play with the buttons and dials as the Ghost team handle all of that stuff for you.

There’s a heap of static site generator tools that can tie in with the different parts of Ghost, if you don’t mind getting your hands dirty. There’s more details on the Ghost [blog](https://ghost.org/blog/3-0/) and [Docs](https://ghost.org/docs/api/v3/).

I hope that makes a bit more sense @bershatsky! 😊

---

<div class="post-metadata">

**Author:** ![bershatsky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bershatsky/32/2257_2.png) [@bershatsky](https://forum.ghost.org/u/bershatsky)\
**Post date:** [January 15, 2020, 3:04pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/5 "2020-01-15T15:04:50Z")

</div>

It does. Thanks!

I’ve already got a static ghost site using eleventy and netlify. I’m trying to decide if I want to go that way, or using a regular ghost installation. There’s benefits to both.

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [January 15, 2020, 4:29pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/6 "2020-01-15T16:29:23Z")

</div>

I also self host Ghost on a DO droplet and use Cloudflare free in front of it all. No issues so far.

---

<div class="post-metadata">

**Author:** ![pascalandy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pascalandy/32/444_2.png) [@pascalandy](https://forum.ghost.org/u/pascalandy)\
**Post date:** [January 15, 2020, 7:58pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/7 "2020-01-15T19:58:28Z")

</div>

Cloudflare all the way!

---

<div class="post-metadata">

**Author:** ![pascalandy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pascalandy/32/444_2.png) [@pascalandy](https://forum.ghost.org/u/pascalandy)\
**Post date:** [January 15, 2020, 8:00pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/8 "2020-01-15T20:00:09Z")

</div>

> [@StuartMorrisAU](#):
>
> set various [security headers](https://securityheaders.com/) (even on domains where I don’t have access to the hosting server).

You can do this at the proxy level. In my case, I use Traefik to set security headers. They even can be customised by domains :) .

---

<div class="post-metadata">

**Author:** ![StuartMorrisAU](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stuartmorrisau/32/26117_2.png) [@StuartMorrisAU](https://forum.ghost.org/u/StuartMorrisAU)\
**Post date:** [January 15, 2020, 10:03pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/9 "2020-01-15T22:03:46Z")

</div>

Looks good!

---

<div class="post-metadata">

**Author:** ![theodorechu](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@theodorechu](https://forum.ghost.org/u/theodorechu)\
**Post date:** [January 17, 2020, 7:19pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/10 "2020-01-17T19:19:17Z")

</div>

I use Cloudflare with Ghost because Cloudflare [obfuscates email addresses](https://support.cloudflare.com/hc/en-us/articles/200170016-What-is-Email-Address-Obfuscation-), which means I can have email addresses on my website and not have to worry about bots scraping and spamming them.

---

<div class="post-metadata">

**Author:** ![cherryjimbo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cherryjimbo/32/4367_2.png) [@cherryjimbo](https://forum.ghost.org/u/cherryjimbo)\
**Post date:** [January 20, 2020, 7:11pm UTC](https://forum.ghost.org/t/ghost-on-digital-ocean-do-you-use-cloudflare/11394/11 "2020-01-20T19:11:52Z")

</div>

> [@StuartMorrisAU](#):
>
> Ghost(Pro) also runs on DigitalOcean and they use Cloudflare’s enterprise product, but as a Ghost(Pro) user, you don’t have access to play with the buttons and dials as the Ghost team handle all of that stuff for you.

This is generally true, but I use Ghost(Pro), with my own Cloudflare setup, and custom worker implementation as per my blog at [Using Cloudflare Workers HTMLRewriter to extend Ghost(Pro)](https://jross.me/using-cloudflare-workers-htmlrewriter-to-extend-ghost-pro/). You essentially have to use Cloudflare Workers as a proxy for your [ghost.io](http://ghost.io) subdomain, but it works really well, and you get control over your domain again, without self-hosting.
