# Change settings.js

**URL:** https://discourse.nodered.org/t/change-settings-js/10884
**Category:** General
**Created:** [7 May 2019 12:04 UTC](https://discourse.nodered.org/t/change-settings-js/10884 "2019-05-07T12:04:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Holger-Will](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/holger-will/32/7302_2.png) [@Holger-Will](https://discourse.nodered.org/u/Holger-Will)
#### Post date: [7 May 2019 12:04 UTC](https://discourse.nodered.org/t/change-settings-js/10884/1 "2019-05-07T12:04:12Z")

</div>

my node needs the nodes context storage to be persistent, for that, I can set  
`contextStorage` to `localfilesystem` in settings.js.

can I change that setting from my node? how?

in the [docs](https://nodered.org/docs/user-guide/context#saving-context-data-to-the-file-system) it is mentioned that you can use multiple context storages:

```auto
contextStorage: {
   default: "memoryOnly",
   memoryOnly: { module: 'memory' },
   file: { module: 'localfilesystem' }
}

```

how do I use a contextStorage different to `default` for my nodes context?

If it is not possible to change these setting from code, is there a recommended way to tell users about the required settings?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 May 2019 12:08 UTC](https://discourse.nodered.org/t/change-settings-js/10884/2 "2019-05-07T12:08:35Z")

</div>

you have to edit the settings.js file and restart node-red.

For an explaination of how it works, read [A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115)

---

<div class="post-metadata">

### Author: ![Holger-Will](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/holger-will/32/7302_2.png) [@Holger-Will](https://discourse.nodered.org/u/Holger-Will)
#### Post date: [7 May 2019 15:05 UTC](https://discourse.nodered.org/t/change-settings-js/10884/3 "2019-05-07T15:05:50Z")

</div>

great write up! thanks! should have searched the forum before asking 😉
