A quick word about NGINX. NGINX is running on port 80 and 443 and redirects to the node.js server. In the case of port 80 it redirects to 443 which has SSL. The config file for NGINX is under
/etc/nginx/sites-available with a symbolic link to
/etc/nginx/sites-enabled. The symbolic link was made with
Server Name and Error Page
Remember to change the
server_name at the bottom if on a different domain/subdomain and
the Error html files up top depending if on the production or development VM.
This is all you have to type in for now. Certbot will edit this file later based on the
Make sure to put the
Reload (needed after any change)
And then any changes requires a reload.