我遵循了建议的视频教程https://www.youtube.com/watch?v=u1sxDaH3Z-U和https://www.youtube.com/watch?v=f8XAT1oB1eA
我正在使用node.js看门狗子模块进行调试。这就是教程视频所做的。她没有任何问题。
有什么线索吗?
backendSettings = {
"scheme":"http",
"host":"localhost",
"port":8989,
"key":"/etc/nginx/ssl/SECURITY.key",
"cert":"/etc/nginx/ssl/SECURITY.crt",
"resource":"/socket.io",
"publishUrl":"publish",
"serviceKey":"",
"backend":{
"port":80,
"host":"panduh420.com",
"messagePath":"/nodejs/message"},
"clientsCanWriteToChannels":true,
"clientsCanWriteToClients":true,
"extensions":"",
"debug":false,
"transports":["websocket",
"polling"],
"jsMinification":true,
"jsEtag":true,
"logLevel":1};

发布于 2015-12-05 02:57:33
我也有问题。在第3行,由于某种原因,使用localhost对我来说从来都不起作用。将第3行改为
"host":"panduh420.com",另外,如果您的服务器有防火墙,请确保端口8989是打开的。
另外,如果不使用https,则不需要密钥或证书。
这是我的
backendSettings = {
"scheme":"http",
"host":"mywebsite.com",
"port":8080,
"key":"/path/to/key/file",
"cert":"/path/to/cert/file",
"resource":"/socket.io",
"publishUrl":"publish",
"serviceKey":"",
"backend":{
"port":80,
"host":"mywebsite.com",
"messagePath":"/nodejs/message"},
"clientsCanWriteToChannels":false,
"clientsCanWriteToClients":false,
"extensions":"",
"debug":false,
"transports":["websocket",
"flashsocket",
"htmlfile",
"xhr-polling",
"jsonp-polling"],
"jsMinification":true,
"jsEtag":true,
"logLevel":1};https://drupal.stackexchange.com/questions/182885
复制相似问题