You really don’t need to configure all that as long as you point your subdomain to your VPS and let discourse generate SSL for itself. DIscourse comes with built in support for free SSL from letsencrypt so you really don’t have to configure anything unless you want to.