寻找一个 http-in 节点来处理 ssl 入站 Web 服务
looking for an http-in node to handle ssl inbound web services
有人知道 ssl 的 http-in 的替换节点吗?认为我唯一的选择是将 nodejs 作为 https 服务器启动?
任何建议都很好。
谢谢,登
您不需要替换节点(我不相信有任何替换节点,因为它需要实例化它自己的独立于 Node-RED 的 HTTPS 服务器),您只需配置 Node-RED 来侦听 HTTPS连接。
如何配置 Node-RED 以侦听 HTTPS 在 settings.js
(在 Node-RED 用户目录中找到,通常是 ~/.node-red 并且包含在前几行中Node-RED 日志)
// The `https` setting requires the `fs` module. Uncomment the following
// to make it available:
//var fs = require("fs");
...
// The following property can be used to enable HTTPS
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
// for details on its contents.
// See the comment at the top of this file on how to load the `fs` module used by
// this setting.
//
//https: {
// key: fs.readFileSync('privatekey.pem'),
// cert: fs.readFileSync('certificate.pem')
//},
...
可以在我的博客中找到更多详细信息post here
有人知道 ssl 的 http-in 的替换节点吗?认为我唯一的选择是将 nodejs 作为 https 服务器启动?
任何建议都很好。
谢谢,登
您不需要替换节点(我不相信有任何替换节点,因为它需要实例化它自己的独立于 Node-RED 的 HTTPS 服务器),您只需配置 Node-RED 来侦听 HTTPS连接。
如何配置 Node-RED 以侦听 HTTPS 在 settings.js
(在 Node-RED 用户目录中找到,通常是 ~/.node-red 并且包含在前几行中Node-RED 日志)
// The `https` setting requires the `fs` module. Uncomment the following
// to make it available:
//var fs = require("fs");
...
// The following property can be used to enable HTTPS
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
// for details on its contents.
// See the comment at the top of this file on how to load the `fs` module used by
// this setting.
//
//https: {
// key: fs.readFileSync('privatekey.pem'),
// cert: fs.readFileSync('certificate.pem')
//},
...
可以在我的博客中找到更多详细信息post here