Bubuioc
Bubuioc
> I hope it doesn't sound offensive to you, but if you are using the node:cluster not for an experiment, but for a production app, that means you are doing...
> I have been using PM2 for a very long time (even before docker) and it does work with sticky sessions under nginx, which are useful for websocket connections. >...
> No, this is the advantage of node cluster, it's all in one port, so the nginx configuration is quite simple. Can you provide nginx configuration for cluster mode?
> ``` > > ``` > > > > > > I mean, since there I tried this, isn't working as you said here is one port.
> Something like > > ``` > location ~ ^/socket.io/ { > proxy_pass http://localhost:3000; > proxy_http_version 1.1; > proxy_set_header Upgrade $http_upgrade; > proxy_set_header Connection 'upgrade'; > proxy_set_header Host $host; >...