521 after updating nginx

I’m going to guess it’s not responding to HTTPS on Port 443. From the Overview page for your domain, click “Pause Cloudflare on Site” (lower right corner) and wait five minutes to take effect, then try your site using the hostname…and HTTPS as well.