Can I use http2 with DigitalOcean Load Balancers?

Posted March 10, 2018 2.8k views
Load Balancing

I’d like to use http2 on our site which is behind the DO load balancers.

We were using the tcp passthrough with http2 configured on nginx on the droplets and that was working fine. The problem is that we weren’t able to get the client’s remote ip – the x-forwarded-for ips were the ones of the load balancer, not the client (which makes sense, since the load balancer doesn’t change the headers in tcp mode).

Any way to get both http2 and the client IPs while using DO load balancers? I’m stuck.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

As far as I know, DigitalOcean Load Balancers don’t support the HTTP/2 protocol. You can vote for it on the DigitalOcean’s UserVoice pageSupport HTTP/2 on load balancers.