https 上的 Signalmaster:ERR_CONNECTION_REFUSED

Signalmaster on https: ERR_CONNECTION_REFUSED

我有一个使用 Signalmaster 的 ember 项目。在 config/environment.js 我有以下内容:

if (environment === 'production') {

ENV.SIGNALMASTER = {
  HOST: 'https://localhost:8890',
  PORT: '8890',
  FORCE_CONNECTION: true
};

在我的服务器上,我在 https://localhost:8890 处有 signalmaster 运行(在 signalmaster 配置目录中的 development.json 和 production.json 文件中,我将安全设置为 true,在 signalmaster 的 server.js 文件中,我已经放入了我的 SSL 证书和密钥的位置,这是 运行 在 https 上所需要的) - 当 运行 "node server.js"我得到以下信息:

signal master is running at: https://localhost:8890

运行 "netstat -lnp" 还在端口 8890 上显示进程 运行。但是,当我使用该应用程序时,出现如下错误:

GET https://localhost:8890/socket.io/?EIO=3&transport=polling&t=LjG8--J net::ERR_CONNECTION_REFUSED

我正在使用 socket.io 版本 1.3.7。

而不是将主机设置为 https://localhost:8890, seems it had to be https://[domain.com]:8890