Settings.js location in Dietpi and entry for contextStorage

Hello

I like to enable context data writing to file.

I found the following entry for the settings.js file

1

2

3

4

5 contextStorage: {

default: "memoryOnly",

memoryOnly: { module: 'memory' },

file: { module: 'localfilesystem' }

},

Im unsure if it needs a comma at he end? I have seen different samples and have no idea how it will look like placing the entry on the end of the file.

Second problem is the settings.js file location. There is no such file in my home directory.
See the list searching for the file:

root@DietPi:~# find / -name settings.js
/mnt/dietpi_userdata/node-red/node_modules/@node-red/editor-api/lib/admin/settings.js
/mnt/dietpi_userdata/node-red/node_modules/@node-red/editor-api/lib/editor/settings.js
/mnt/dietpi_userdata/node-red/node_modules/@node-red/runtime/lib/api/settings.js
/mnt/dietpi_userdata/node-red/node_modules/@node-red/runtime/lib/storage/localfilesystem/settings.js
/mnt/dietpi_userdata/node-red/node_modules/@node-red/runtime/lib/settings.js
/mnt/dietpi_userdata/node-red/node_modules/node-red/settings.js
/mnt/dietpi_userdata/node-red/node_modules/@polymer/polymer/lib/utils/settings.js
/mnt/dietpi_userdata/node-red/node_modules/node-red-admin/settings.js
/mnt/dietpi_userdata/node-red/settings.js

I assumed it is the file:
/mnt/dietpi_userdata/node-red/settings.js

But after a rebooting it seems not to work.

Thx for any suggestion

Manfred

I think that is the wrong one. The one you want is identified in the terminal output when you start node red.

It doesn't go at the end of the file. Look through the file and you should find the section already there commented out, or with default settings.