I'm in the process of moving all my Netlify domains into my DigitalOcean Droplet and wanted to make this the main one (the rest as subdomains). I already have a Node API hosted on the default sites-available.
Recently redeployed my server and ran into this error AGAIN!
1031#1031: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 22.214.171.124, server: ww2.zone,
Followed this (https://lengstorf.com/code/deploy-nodejs-ssl-digitalocean/) tutorial to get Let's Encrypt working on my Nest.js/Node server.
Everything works - running sudo nginx -t returns:
nginx: the configu...
You can only have 1 service listening on 1 port. So as you have Nginx listening on port 80 at the moment, you can not have your Node on the same port.
Also as you currently have your Nginx set to work as a reve...