Using a certificate when Discourse is installed behind a reverse proxy

Because I have a physical Server I could install it on. I don’t want Discourse sitting on a cloud server, but instead installed on my server.

Tried following this guide just for kicks. Basically “Unable to connect to server” no matter the URL I put in, so that’s a bust. Of course, this guide seems to assume Nginx will be installed on the same machine as Discourse, whereas the two are in separate VMs.

A thought: perhaps it would be better to install Discourse on the same VM as Nginx? I really hate what it could mean for my other VMs on the Server.