Using NGINX for authentication and authorisation to Node-RED

A previous FAQ started to unpack how to use NGINX as a reverse proxy for Node-RED for both performance and security.

This thread will unpack some more details about how to configure things between NGINX and some simple Node-RED flows in order to provide authentication and authorisation. These examples also assume that you are running NGINX and Node-RED on the same server. That doesn't have to be the case but it makes the examples a little simpler.

I will mostly assume that you have the NGINX server set up and working and you know the basics of proxying node-red from the previous thread.

Note that you cannot easily use HTTP Digest authentication with NGINX as it is considered too insecure and so the module is not included with standard builds.

2 Likes