dude001
By:
dude001

DigitalOcean load balancer SSL passthrow problem with cloudflare

August 3, 2017 556 views
Load Balancing Node.js Nginx Ubuntu 16.04

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

1 comment
Be the first one to answer this question.