Add node-red admin init
option to help user create settings file
#53
Replies: 4 comments 4 replies
-
This sounds like a great idea, editing the settings file is currently quite a barrier to entry for many new users, it would be nice to eventually get to a stage where this could be done from the editor as well, obviously that requires a restart of Node-RED but that would also be useful from the editor when upgrading nodes. |
Beta Was this translation helpful? Give feedback.
-
PR raised - node-red/node-red-admin#15 |
Beta Was this translation helpful? Give feedback.
-
Can it detect Node-RED version and not ask about Monaco if still v1 ? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a settings.js compare feature? Some way to compare a live settings.js with the latest default? That is something that is increasingly a pain as the settings file grows in complexity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
to get a settings file, users must first run Node-RED to get the default file copied into the right location. If a user wants to edit their settings file before running Node-RED for the first time, they need to get ahold of a settings file from somewhere. We don't make that easy.
the default settings file has no security applied. A user has to go through multiple manual steps to setup
adminAuth
- generate password, edit settings file (which may not exist yet... see point 1 above), add the right boilerplate code to the settings file, and so on.there are other settings the user may want to turn on - for example, projects mode.
Proposed Solution
We add a new command to
node-red-admin
(which is also exposed asnode-red admin
) that will help the user generate the settings file in the right location without having to run Node-RED itself.The command will be similar in nature to
npm init
oreslint --init
- by default it will ask the user a series of questions to generate the file. For example:~/.node-red
as usual)credentialSecret
valueNeed to consider:
Beta Was this translation helpful? Give feedback.
All reactions