MQTT configuration from file or env. variable

Hi @Chris24918

you can do this using environment variables.

Any node property can be set to something like $(MY_CLIENT_ID) and the runtime will substitute the value of the env var MY_CLIENT_ID before it gets passed to the node. This cannot be used to insert env vars into part of the value - it has to be the entire value - so $(MY_CLIENT_ID)_FOO will not work.

That is exactly what you want if you are deploying the same set of flows to 50+ devices and you need each to insert its own configuration values.

2 Likes