Error in user guide?

jbudd
Sun, 17 Mar 2024 09:36:36 +0000
General

The user guide on using environment variables says that when Node-red is running as a service, environment variables can be defined in a file ~/.node-red/environment.

The file path seems to be defined in /lib/systemd/system/nodered.service:

# define an optional environment file in Node-RED's user directory to set custom variables externally
EnvironmentFile=-/home/pi/.node-red/EnvironmentFile

I find that variables defined in ~/.nodered/environment are not set, but those defined in ~/.nodered/EnvironmentFile are.
The documentation needs a change to reflect this.

7 posts - 4 participants