May I ask which steps have you tried for troubleshooting 521 error from the article below so far?
What port do you use on your origin host/server for your web application?
Before moving to Cloudflare, was your Website working over HTTPS connection?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?
Kindly re-check if Cloudflare is allowed (firewall, etc.) to connect to your origin host to as follows in the below article:
Nevertheless, Cloudflare IP addresses list can be found here: