# Configuring the setting.js file

**URL:** <https://discourse.nodered.org/t/configuring-the-setting-js-file/84563>\
**Category:** General\
**Created:** [15 January 2024 14:48 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563 "2024-01-15T14:48:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sercancetin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sercancetin/32/50083_2.png) [@sercancetin](https://discourse.nodered.org/u/sercancetin)\
**Post date:** [15 January 2024 14:48 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563/1 "2024-01-15T14:48:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [15 January 2024 14:59 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563/2 "2024-01-15T14:59:35Z")

</div>

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](https://nodered.org/docs/creating-nodes/node-js#exposing-settings-to-the-editor)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 January 2024 15:03 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563/3 "2024-01-15T15:03:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 January 2024 20:19 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563/4 "2024-01-15T20:19:53Z")

</div>

> [@sercancetin](#):
>
> Hello. How can I configure /.node-red/settings.js from the node-red interface? Is there such a node or flow?

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 March 2024 20:20 UTC](https://discourse.nodered.org/t/configuring-the-setting-js-file/84563/5 "2024-03-15T20:20:36Z")

</div>

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