ERR_TOO_MANY_REDIRECTS error, please help :)

I think the problem is the fact that Cloudflare as well as ghost has made an ssl certificate, making them unable the be used together. I found a page explaining that you need to put some commands into an ssh, but now when i go to my tunnel I created using the zero trust section and i typ in my website with ssh. in front, a bad gateway 502 error occurs.