【问题标题】:Setting listeners on Websocket/RESTful server (AWS Elastic Beanstalk)在 Websocket/RESTful 服务器上设置监听器 (AWS Elastic Beanstalk)
【发布时间】:2019-05-08 18:18:06
【问题描述】:

我有一个正在监听 8000 的 REST/Websocket 服务器。我已将它部署在 Elastic Beanstalk 上,但我无法使用 ws:// 或 wss:// 网址进行连接。

我可以通过 https:// 很好地连接到它 和这些听众一起。

我已尝试添加 SSH(安全 TCP)侦听器,但仍然无法正常工作(我可能设置不正确)。

注意:我使用的是 Gorilla Websockets (Golang)

【问题讨论】:

    标签: amazon-web-services ssh https websocket amazon-elastic-beanstalk


    【解决方案1】:

    您必须将负载均衡器类型设置为 TCP 并使用 .ebextensions 设置 Nginx 反向代理。找到的示例here

    【讨论】:

      猜你喜欢
      • 2021-01-22
      • 2016-02-02
      • 2013-11-19
      • 1970-01-01
      • 2020-10-30
      • 2016-03-07
      • 2016-12-07
      • 2020-08-13
      • 2015-05-01
      相关资源
      最近更新 更多