Can't run Wordpress installer on selfhosted webserver with Cloudflare Tunnel

You should check the cloudflared logs to see why it is reporting a bad gateway.