Configuring the setting.js file

Hello. How can I configure /.node-red/settings.js from the node-red interface? Is there such a node or flow?

With RED.settings.set(key, value)

I don't know if there is any documentation on this.

But, if you use it you have to expose it

1 Like

To be clear, the RED.settings.set() api only allows you to modified node-specific settings that have been properly exposed.

It is not a general mechanism for editing the settings file. Most runtime settings (such as adminAuth, context store settings, logging etc) can not be modified whilst Node-RED is running.

1 Like

In general, this would be quite a serious security problem if there were I'm afraid. And, in any case, the file is only read when Node-RED starts so you would have to restart Node-RED anyway.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.