520 errors with aks nginx-ingress behind cloudflare DNS proxy

I’m currently running on Azure with AKS and nginx-ingress hosting some .net and node.js apps, ever since i enabled cloudflare DNS proxy, i’ve been getting intermittent 520 errors, I see no error in the nginx access/error logs, application logs. i’ve increased resource usage on my application stack to rule out timeouts in responding to the requests, and also nginx tweaks, so far none of these have helped

changes i’ve tried:
Increased resource limits to rule out application timing out
set TLS mode to Strict and installed cloudflare origin certificates
Whitelisted cloudflare IPs as instructed in the docs
nginx tweaks:

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
use-proxy-protocol: "True"

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.