How to serve node Socket IO connections with NGINX reverse Proxy

In this post, I would like to show you the configuration of Nginx web server to serve Socket IO connections with Nginx reverse proxy.

Open your Nginx configuration file with vi or any other editor:

Now update your server block same as below shown. It should look something like this:

Replace with your ec2 domain name and private_ip_address with the private ip address associated ( which you obtained previously)

Save and quit file using :wq vi command.

Test the configuration of Nginx using the command below:

Then reload Nginx if OK is displayed.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets. Protection Status