By dude001
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!
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.