I have an EC2 instance running a windows server. On the windows server, I installed IIS. This handles serving up http requests.
I used https://github.com/win-acme/win-acme to generate the certificate. Then I added it using the default site using the IIS manager.
Then I set up a reverse proxy following https://tecadmin.net/set-up-reverse-proxy-using-iis/
Once all this has been setup I finally boot up my node.js server on port:4000. This port is being proxied to:80.
I make an HTTP request to the server and run into two major problems I am not understanding.
One is the Websockets setup in my node.js server using https://socket.io/ are showing failed: Error during WebSocket handshake: Unexpected response code: 500
The second major issue is my request does some processing and takes a min or two to complete. Midway through it just fails. I am not sure why this is.
Before setting up HTTPS it was working via localhost on my MAC. HTTPS doesn't allow requests to be made via HTTP. So this is why I had to set up HTTPS on my windows server. Ever since I setup HTTPS I have been running into this issue. So I am pretty sure it has to do with my setup described above.
Any insights would be amazing!