2017-09-13 5 views
-2

누구든지 ssl 용 http-in의 대체 노드를 알고 있습니까? 내 유일한 대안은 https 서버로 nodejs를 시작하는 것일까 요?ssl 인바운드 웹 서비스를 처리 할 http-in 노드를 찾으십시오

어떤 제안이 좋을 것입니다.

감사합니다, 덴

당신은, 당신은 단지 구성 노드 (그리고 내가 어떤 그것이 노드 RED에서 자신의 HTTPS 서버 독립의 인스턴스를해야합니다으로있다 생각하지 않는다) 교체 노드를 필요가 없습니다

답변

0

HTTPS 연결을 수신 대기하는 빨간색.

HTTPS에서 수신 대기하도록 노드 -RED를 구성하는 방법은 settings.js (일반적으로 ~/.node-red이며 노드 -RED의 처음 몇 줄에 포함 된 노드 -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') 
//}, 
... 

자세한 내용은 내 블로그 게시물에서 찾을 수 있습니다) 로그 here