Export/Import Security Credentials

Hello.

I found some tips here:
How to copy credentials in node-red flow?
and here:
Node-RED User Directory

My approach to solving this:

  1. Create a copy of the ~/.node-red folder on a network location
  2. Modify settings.js file specifying userDir: to match location from step 1.
  3. Modify settings.js file specifying contextStorage location:
contextStorage: {
        default: {
            module:"localfilesystem",
			config: {
			dir: "<path to your dir>",  // eg. "/home/pi/store/"
			base: "<name of the directory for context>", // eg. "context" 
			}			
        },
    },

This allows to share flows and credentials between devices.