Here's how to enable your new site config file with nginx on Ubuntu
This is my go-to nginx.conf file
Certbot from Let's Encrypt is the defacto method for installing and maintaining TLS certificates. Before you can use it on your new Ubuntu server you have to install it. Walk through the steps to install a TLS certificate with Nginx reverse-proxy