Websockets with AWS and Elastic Beanstalk

后端 未结 5 762
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 17:20

I\'m trying to get my websockets working with Amazon Web Service and Elastic Beanstalk (ELB).

I set up a proxy protocol according to: http://docs.aws.amazon.com/Elastic

5条回答
  •  鱼传尺愫
    2021-02-02 17:55

    You should create reverse proxy for Nginx server. You can include this config file in you .ebextensions folder to make Nginx support WS.

    Also in the EBS's load balancer configuration change the protocol from HTTP to TCP.

    Refer this blog to set up secure WebSocket.

提交回复
热议问题