I need to integrate Cloudflare with my droplets through the Managed Load Balancer provided by DigitalOcean.
This is my current configuration:
How should I configure the DigitalOcean load balancer to support this integration, and keep the original IP of the client coming from Cloudflare?
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.
Hi there,
The setup looks very good. The DigitalOcean Load Balancers will set some HTTP headers that pass the source IP through to your backend servers, like Cloudflare does with
X-Forwarded-For
, andCF-Connecting-IP
headers.From the Protocol Support section of the docs:
Hope that this helps! Regards, Bobby