How to use Cloudflare to protect a Discourse site

Hi Simon:

Yes, I am a self-hosted site, I have noticed can add to app.yml and then rebuild

  • “templates/cloudflare.template.yml”

More questions do I need to enable the below templates.yml to app.yml too or keep it disalbed?

  • “templates/web.ssl.template.yml”
  • “templates/web.letsencrypt.ssl.template.yml”

Also if I am using a proxy like Nginx with CF protected, can I change the default expose ports like below, then appending ssl get from CF by manually writing to nginx config file?
expose:
- “81:80”

- “443:443”