Socket
Socket
Sign inDemoInstall

@doing-things-with-node-red/node-red-context-configservice

Package Overview
Dependencies
53
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @doing-things-with-node-red/node-red-context-configservice

[![Node.js Package](https://github.com/doing-things-with-node-red/node-red-context-configservice/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/doing-things-with-node-red/node-red-context-configservice/actions/workflows/npm-publish.yml)


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Node.js Package

node-red-context-configservice

Spring Cloud Config provides server-side for externalized configuration in a distributed system. You have a central place to manage external properties for applications across all environments.

Node-RED provides a way to store information that can be shared between different nodes without using the messages that pass through a flow. This is called context.

The scope of a particular context value determines who it is shared with. There are three context scope levels:

  • Node - only visible to the node that set the value
  • Flow - visible to all nodes on the same flow (or tab in the editor)
  • Global - visible to all nodes

We are looking for use both features, to retrieve and storage externalized configuration in our Node-RED Global context.

Context Store with ConfigService

Node-RED provides two built-in modules for this:

  • memory
  • localfilesystem

We build a custom one based on the memory one.

To enable it, the following option in your Node-RED settings.js file can be used:

contextStorage: {
    default: {
        module: config => (require("@doing-things-with-node-red/node-red-context-configservice")(
            "http://configservice:80/properties.json",
            {
                strictSSL: true,
                interval: 3600000,
                retries: 3
            }
        ))
    }
},

Compose

We are using Docker Compose to test our e2e Alt Text

FAQs

Last updated on 20 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc