ScriptaGames / zorbio

A 3D multiplayer WebGL game
MIT License
8 stars 1 forks source link

Create new nodebalancer config for TCP on a different port for ws #361

Closed Jared-Sprague closed 8 years ago

Jared-Sprague commented 8 years ago

This fixes the proxy issues we saw at moore squre:

Run the WebSocket Server on a diffferent port and create a config for that in the node balancer in TCP mode. Also make sure the provisions scripts are updated to increment the port number open firewall ports etc etc, refactor everywhere we use PORT to separate http and ws ports.

Jared-Sprague commented 8 years ago

@mwcz Note, for simplicity I moved the http port to 8080. and the port doesn't change on prod vs dev becaues in prod it's mapped 80 -> 8080 by the nodebalancer, so we don't need PORT in environment_dev.js anymore. What that means is you won't use :3000 for localhost, but now use localhost:8080

Jared-Sprague commented 8 years ago

Done! http_port=8080 protocol http, ws_port=31000 protocol tcp