The first thing we need to do before we can do anything else is install NGINX (https://www.nginx.com/). NGINX is an HTTP server, reverse proxy, and IMAP/POP3 proxy server. With NGINX, we can host our Node.js application using PM2 and use NGINX as a reverse proxy to make it available to our host Windows system. We can also run our .NET Core application using NGINX.
So, on your Linux VM, install NGINX:
sudo apt-get updatesudo apt-get install nginxsudo systemctl restart nginxsudo systemctl enable nginx
Then, install NGINX and make sure that it gets started on start up. I am going to do a fast-forward here; we are going to run PM2 on port 8889 internally and make it available on port 8888 externally. We are going to do the same ...