Report this

What is the reason for this report?

DigitalOcean load balancer SSL passthrow problem with cloudflare

Posted on August 3, 2017

Hello,

I have a problem with setting up infrastructure for web application, im running 2 web servers running nodejs and nginx and both are connected to a third mongodb server. The web servers are connected to DigitalOcean load balancer running round robin with sticky session Cookie TTL 600. The load balancer ip is connected to the website domain by Cloudflare DNS and CDN network for extra trafic filtering and ddos protection. The problem is when I have the load balancer set to ssl termination the app works great with the cookie time, but when i use ssl passthrow the app is losing connection for logged in users due to cookie changing and server. both web servers are running the same ssl certificate.

I found this “In addition, you cannot add or modify the HTTP headers, so you may lose the client’s IP address, port, and other information contained in the X-forwrded-* headers.” on Configure SSL Passthrough on DigitalOcean Load Balancers, and i think that this is the issue but I’m not able to find a solution for it.

I hope to find a solution here



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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.