How many hours does it take to install Discourse?

Discourse setup doesn’t require an email now to enrol certificates, and hasn’t done for a while. Unless you amend the yml to disable SSL it will always default to HTTPS.

Using Cloudflare for DNS and turning the orange cloud on are totally different things. Using Cloudflare in the context of the above refers to their proxy and optimizations, which have done pretty screwy things in the past. Their DNS is fine, good even.

Your Discourse installation doesn’t need to change, you have HTTPS working and everything there now is fine. If SSL works and the CloudFlare template is enabled don’t touch it.

It sounds like the issue is now at WordPress, how do you have that installed? Is it just a VPS, or are you on a WordPress host of some form?

This is a very common configuration, I’m pretty confident it’s an easy fix.

This is a Very Bad Idea. Once Discourse has enrolled the certificate from Let’s Encrypt the renewals will succeed as they happen via a different mechanism. There’s no need to disable TLS between server and CDN.

Why do this in light of the above? Aside from creating additional local load processing UFW rules for all traffic, you just run the risk that that your rules fall out of date, it’s a quick way to a bunch of network errors. Cloudflare periodically brings new IP ranges online, the first you will hear of it is when your users can’t access the site. Let the certificate enrol, and if you do want to use CloudFlare just tune a page rule accordingly.