Add node-red admin init option to help user create settings file
#53
Closed
knolleary
started this conversation in
Design Proposals
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. |
0 replies
|
Can it detect Node-RED version and not ask about Monaco if still v1 ? |
4 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 initoreslint --init- by default it will ask the user a series of questions to generate the file. For example:~/.node-redas usual)credentialSecretvalueNeed to consider:
All reactions