I cannot access my site when I enable proxy in DNS settings for my subdomain. When proxy is disabled there is no issue reaching the site

To clarify, I can reach the site with the proxy disabled using HTTPS(SSL) since i’m using the Cloudflare Origin Certificate on my nginx instance, just need to ignore the browser warning.

I had set up Cloudflare to proxy traffic to my backend in DNS settings and use a Cloudflare issued and managed SSL cert.

When the proxy is enabled I get 524 “A timeout occurred”