Need help with connection timed out 522 on Pi web server

Is Cloudflare allowed to connect to your Pi? (IP addresses)
https://support.cloudflare.com/hc/en-us/articles/201897700-Allowing-Cloudflare-IP-addresses

Moreover, which port are you using on your VPS or Pi? (there are compatible ports with Cloudflare)
https://support.cloudflare.com/hc/en-us/articles/200169156-Identifying-network-ports-compatible-with-Cloudflare-s-proxy

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

https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors#502504error

1 Like