I recently installed an SSL certificate from ZeroSSL in my new .dev website. When I have Cloudflare set to “DNS Only” the site loads as it should (secured), but when I set it to Proxied I get the 522 Error. I have the domain set to “Always Use HTTPS” in the SSL/TLS Edge Certificates page and I can’t see any other settings that might be causing the issue.
It should be noted that I have other Cloudflare (proxied) accounts for different (unsecured) domains, running on the same Digital Ocean Droplet, and they work as expected, so I don’t believe this is a Whitelist IP issue as I’ve found suggested in my searches.