Help i'm completely new and i don't understand what to do. can someone help step by step?
-
Open your Node-RED settings file (typically
~/.node-red/settings.js
- but Node-RED logs the full path to the file it is using so you can check). -
Find the
credentialSecret
entry. Remove the//
from the start of the line to uncomment it and then change the value (a-secret-key
) to be whatever string you want to use to encrypt your credentials file. You will need to remember that value if you every want to move your flows to another machine (for example). -
Restart Node-RED. Done.
nano ~/.node-red/settings.js
Hi @robbe - you cannot just type the file name in. You have to open it in an editor, such as vi
or nano
.
Click on the fourth icon from the left (to the left of the node-red symbol) and a command prompt will open. Then follow @bakman2's instructions above. When you have edited the file press ctrl and O and press return to confirm the file you want to write, then press ctrl and X to exit nano.
As per above.
If you press ctrl and W together and then type "a-secret-key" (without the quotes) and press return you should be at the line you need to change.
do i need to do something with the key now ?
because i can't start node red yet.
As described by Nick.
Did you (re-)start Node-RED?
if i do node-red-restart.
command not found
node-red-stop followed by node-red-start.