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 (https://expressjs.com/en/guide/behind-proxies.html) but no luck.
I really don’t want to run NGINX or Apache in-front of my Dockerized Node app.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
I found the answer - just use the https://www.npmjs.com/package/proxywrap package.
It looks like the http, https, or http2 package you are using from Node internals need wrapped with something like this fork https://github.com/cusspvz/proxywrap. I have yet to test, but this seems promising.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.