Now I have added Cloudflare reverse-proxy, is NGINX really required? Is it safe or okay to remove, nginx and connect to nodejs frontend servers directly?
At present, NGINX helps with,
SSL termination - needed for Full (Strict) (Nodejs also does it.)
Proxy pass and load balance to nginx servers (I could enable Cloudflare loadbalancing)
Serve static content. (NodeJS still serves it, used during development. With Cloudflare caching, NGINX seems less relevant.)
What do others do? Do you still keep NGINX reverse proxy after setting up Cloudflare?
If each NodeJS instance has a public IP… it’s not strictly required I suppose. We certainly have customers running in that type of setup. If you’re not using nginx for anything other than simple proxy to the individual NodeJS instances it is probably a pretty simple change. Additional intelligence can be added using LB (for intelligent failover) or workers for fancier routing choices.