sammachin / node-red-contrib-ngrok

ngrok node for node-red
MIT License
7 stars 10 forks source link

authtoken in settings.js #27

Closed grawsom closed 1 year ago

grawsom commented 2 years ago

Is it possible to have the authtoken configured in NR’s settings.js?

aiot-maker commented 2 years ago

You could but not sure if you should..

When data is configured inside credential config in the node it will be securely stored with criptography while data in settings.js is plain text.

You can test by adding an entry in module.exports in settings.js, like below:

module.exports =  {
token1 : process.env.TOKEN1 = "your_authorization_token_here"
}

Then, in the config dialog of NGROK node enter the following variable in the authtoken field:

${TOKEN1}