Host error - On MQTT Installation

I’m getting a Bad Gateway error code 502 trying to connect from MQTT in Home Assitant to Cloudflare and I need this running to install Blinds and need a fix please, I have tried to re do it many times now and also tried different method to not need to be using Cloudflare, but Im faces with eror after error after error