Hello. How can I configure /.node-red/settings.js from the node-red interface? Is there such a node or flow?
Hi,
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
https://nodered.org/docs/creating-nodes/node-js#exposing-settings-to-the-editor
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.
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.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.