settings.js in Node-RED

1,668 views
Skip to first unread message

Sen

unread,
Oct 4, 2016, 8:04:50 AM10/4/16
to Node-RED
Hi,

I am trying to enable user authentication on the Editor and Admin API as explained in http://nodered.org/docs/security.
However,I searched .node-red and couldn't find a general settings.js . I appreciate if someone can tell me where the settings.js should be.

Thanks

Julian Knight

unread,
Oct 4, 2016, 8:28:28 AM10/4/16
to Node-RED
With a standard install, it is in your .node-red folder that will be in the root of your users home folder.

Nicholas O'Leary

unread,
Oct 4, 2016, 8:31:54 AM10/4/16
to Node-RED Mailing List
Hi,

when Node-RED starts up for the very first time, it copies the default settings file from where node-red has been installed into the node-red userDirectory (by default ~/.node-red). It logs both the path to the userDirectory and settings file it is using on start-up so you can confirm what it's doing.

If you have not yet run node-red, the settings file won't yet have been copied over. So you can either run node-red once to get it copied over, or do so manually. The default settings.js file is in the base of the node-red install directory - so will depend how exactly you've installed it.

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/118cd5b9-d92e-459d-95de-6e74b436fc1d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sen

unread,
Oct 4, 2016, 8:45:51 AM10/4/16
to Node-RED
Thank you Julian!. I'll start node-red first and check it. 

Sen

unread,
Oct 4, 2016, 8:48:03 AM10/4/16
to Node-RED
Oh yes! it's there after the node-red is started. Thank you Nick! 


On Tuesday, October 4, 2016 at 11:31:54 PM UTC+11, Nick O'Leary wrote:
Hi,

when Node-RED starts up for the very first time, it copies the default settings file from where node-red has been installed into the node-red userDirectory (by default ~/.node-red). It logs both the path to the userDirectory and settings file it is using on start-up so you can confirm what it's doing.

If you have not yet run node-red, the settings file won't yet have been copied over. So you can either run node-red once to get it copied over, or do so manually. The default settings.js file is in the base of the node-red install directory - so will depend how exactly you've installed it.

Nick
On 4 October 2016 at 13:28, Julian Knight <j.kni...@gmail.com> wrote:
With a standard install, it is in your .node-red folder that will be in the root of your users home folder.

On Tuesday, 4 October 2016 13:04:50 UTC+1, Sen wrote:
Hi,

I am trying to enable user authentication on the Editor and Admin API as explained in http://nodered.org/docs/security.
However,I searched .node-red and couldn't find a general settings.js . I appreciate if someone can tell me where the settings.js should be.

Thanks

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Reply all
Reply to author
Forward
0 new messages