# Discourse with Cloudflare and Digital Ocean

**URL:** <https://meta.discourse.org/t/discourse-with-cloudflare-and-digital-ocean/320099>\
**Category:** Self-hosting\
**Tags:** nginx\
**Created:** [August 5, 2024, 1:28am UTC](https://meta.discourse.org/t/discourse-with-cloudflare-and-digital-ocean/320099 "2024-08-05T01:28:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![lilacbull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilacbull/32/437639_2.png) [@lilacbull](https://meta.discourse.org/u/lilacbull)\
**Post date:** [August 5, 2024, 1:28am UTC](https://meta.discourse.org/t/discourse-with-cloudflare-and-digital-ocean/320099/1 "2024-08-05T01:28:06Z")

</div>

Hello! I’m a newcomer here trying to perhaps start a community with Discourse.

I started my journey with the following How-To on installing Discourse with Digital Ocean:

> <https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md>

I already had accounts with Cloudflare so it was natural for me to set up a domain there. After installing Discourse and making progress on setting things up, I hoped to adjust Cloudflare’s SSL/TLS to Full (Strict). I followed this How-To, which left me at a very basic position with Nginx:

> **[How To Host a Website Using Cloudflare and Nginx on Ubuntu 22.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-host-a-website-using-cloudflare-and-nginx-on-ubuntu-22-04)**
>
> In this tutorial, you will secure a website served by Nginx with an Origin CA certificate from Cloudflare and configure Nginx to use authenticated pull reque…

At this point I can turn on Full (Strict), and turned on Authenticated Origin Pulls. I just didn’t know how to have Nginx serve as a reverse proxy for Discourse from here.

Sadly, I can tinker on command line to get myself this far, but I am not familiar with Nginx. I did make a few good faith efforts to amend the app file on Discourse to some other port such as 12345:80.

From there I tried following other How-Tos which may not have been precisely for me:

I got stuck. I couldn’t make the changes on my own to get the Reverse Proxy going so I uninstalled Nginx for the time being and dialled down Full (Strict) and Authenticated Pulls.

Does anyone have any additional How-Tos or pointers?

---

_[View the full topic](https://meta.discourse.org/t/discourse-with-cloudflare-and-digital-ocean/320099)._
