Skip to content

Instantly share code, notes, and snippets.

Avatar

Oliver Bolton obolton

View GitHub Profile
@obolton
obolton / elb-nodejs-ws.md
Last active Aug 9, 2021
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2
View elb-nodejs-ws.md

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer