Need help with connection timed out 522 on Pi web server

Is Cloudflare allowed to connect to your Pi? (IP addresses)

Moreover, which port are you using on your VPS or Pi? (there are compatible ports with Cloudflare)

Have you tried checking and going through the steps as written on the below links:

1 Like