Load balancer proxy protocol with Express.js Node app

Posted December 23, 2019 266 views
Load Balancing

Anyone got a DO Load Balancer w/ Proxy Protocol to work with a Droplet running a Express.js website/API? As soon as I turn on proxy protocol, the LB droplet status goes unhealthy. I’ve tried adding app.set('trust proxy', true); to my Express setup as per docs ( but no luck.

I really don’t want to run NGINX or Apache in-front of my Dockerized Node app.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!