NodeJS settings

I have several workflows that begin with a NodeJS input, which I’d like to try to reproduce in Automate.

I was expecting to set up a Configuration with the same settings entered in Workflow | Preferences. The port, mount points, credentials, etc.:

But I don’t see, in the HTTP in or HTTP request nodes, any setting for the server to use…

How do these nodes know what server settings to use? Where are the server settings configured?

In Automate/Node-RED these are set in the settings.js file. This file is found in the following location:

https://nodered.org/docs/user-guide/runtime/configuration

For more information on the settings.js file see:
https://nodered.org/docs/user-guide/runtime/configuration

Go it!.

The “httpStatic” setting is what I needed to create the Mount Point for static resources, and the port is the same port NodeRED uses, 1880, so while I could change it to 9090, there’s no need: I’ll just use 1880.

1 Like