ozomer / node-red-contrib-mongodb2

MongoDB driver node for Node-RED
Apache License 2.0
15 stars 19 forks source link

Support for Environment Variables #11

Closed anandrajneesh closed 7 years ago

anandrajneesh commented 7 years ago

I wanted to externalize the connection string for MongoDB as I have to run my flows on different setups/environments, but while referring to env variable as $(connectionString) it does not work. node-red-node-mongodb node honors $( ) notation and the variables are replaced from environment variables if set. Is there something similar available for this node too ?

ozomer commented 7 years ago

Please see: https://github.com/ozomer/node-red-contrib-mongodb2/issues/10#issuecomment-282415261 . Using a storage-module will allow you to make every configuration depend on environment variables