How To Use A Reverse-Proxy On Your NGNIX Setup For Your Node Server
When running a Node application on your NGINX server you're going to want to run it through a reverse-proxy for security reasons.
I use Forge to manage a few of my servers. The way I make this change is to view the site's main info page and choose to edit the NGINX config.
You'll need to replace the and variables with the IP Address of your server and port you're running your application on.
This will work just the same on NGNIX servers that are not associated with Forge. Just make sure to place it in the server block.
Now just make sure to restart NGINX
And that should do it - now you'll be serving your application safely on your server!
For a more detailed walkthrough, check out this awesome walkthrough from Digital Ocean.