NodeRED의 HTTP 요청에 Statica 사용
소개
Statica란?
IBM Cloud(구 Bluemix)에서 제공되는 타사 프록시 서버입니다.
IBM Cloud에서는 애플리케이션 재시작 등으로 IP 주소가 매번 바뀌므로,
화이트리스트가 설정되어 있는 API나 시스템을 이용하기 위해서는 한 가지 궁리합니다.
거기서 편리한 것이 Statica입니다.
절차
Statica 준비
IBM Cloud 카탈로그에서 Statica 서비스 작성

대시보드에서 프록시 서버 주소 메모

NodeRED 준비
오른쪽 상단의 햄버거 메뉴에서 팔레트 관리를 클릭합니다.

"node-red-contrib-http-request"노드 추가

이 추가 노드의 명예에는 다음이 있습니다.
참고: If you need to configure a proxy please add http_proxy=... to your environment variables and restart Node-RED.
즉, NodeRED Starter의 환경 변수에 "http_proxy="를 설정하면 OK입니다.
덧붙여서 추가한 노드는, www request
라는 이름으로 「기능」카테고리에 있습니다.
환경 변수 설정
NodeRED 응용 프로그램의 ランタイム
에서 環境変数
탭을 클릭하십시오.

아래로 스크롤하면 ユーザー定義
환경 변수를 고유하게 정의할 수 있습니다.
아래 그림과 같이 설정합시다.

동작 확인
www request
를 사용하여 HTTP 요청을 보내면 Statica 대시보드에서 Statica를 통해 성공적으로 요청되었는지 확인할 수 있습니다.

결론
최근이라고 LINE의 챗봇을 만들 때 사용했습니다.
화이트리스트 설정이 필수이기 때문에 Statica를 사용하지 않으면 앱을 다시 시작할 때마다 IP 주소를 얻고 화이트리스트를 덮어 쓰는 번거로움이있었습니다.
Reference
이 문제에 관하여(NodeRED의 HTTP 요청에 Statica 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/utti0331/items/33cf3dd0dc4addce5aba
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Statica 준비
IBM Cloud 카탈로그에서 Statica 서비스 작성

대시보드에서 프록시 서버 주소 메모

NodeRED 준비
오른쪽 상단의 햄버거 메뉴에서 팔레트 관리를 클릭합니다.

"node-red-contrib-http-request"노드 추가

이 추가 노드의 명예에는 다음이 있습니다.
참고: If you need to configure a proxy please add http_proxy=... to your environment variables and restart Node-RED.
즉, NodeRED Starter의 환경 변수에 "http_proxy="를 설정하면 OK입니다.
덧붙여서 추가한 노드는,
www request
라는 이름으로 「기능」카테고리에 있습니다.환경 변수 설정
NodeRED 응용 프로그램의
ランタイム
에서 環境変数
탭을 클릭하십시오.
아래로 스크롤하면
ユーザー定義
환경 변수를 고유하게 정의할 수 있습니다.아래 그림과 같이 설정합시다.

동작 확인
www request
를 사용하여 HTTP 요청을 보내면 Statica 대시보드에서 Statica를 통해 성공적으로 요청되었는지 확인할 수 있습니다.
결론
최근이라고 LINE의 챗봇을 만들 때 사용했습니다.
화이트리스트 설정이 필수이기 때문에 Statica를 사용하지 않으면 앱을 다시 시작할 때마다 IP 주소를 얻고 화이트리스트를 덮어 쓰는 번거로움이있었습니다.
Reference
이 문제에 관하여(NodeRED의 HTTP 요청에 Statica 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/utti0331/items/33cf3dd0dc4addce5aba텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)