# Cloudflare 525 error randomly occurs

**URL:** <https://community.fly.io/t/cloudflare-525-error-randomly-occurs/1798>\
**Category:** General\
**Created:** [June 29, 2021, 10:33pm UTC](https://community.fly.io/t/cloudflare-525-error-randomly-occurs/1798 "2021-06-29T22:33:48Z")\
**Posts on this page:** 1\
**Showing post:** 45

<div class="post-metadata">

**Author:** ![morse](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/morse/32/39591_2.png) [@morse](https://community.fly.io/u/morse)\
**Post date:** [May 17, 2024, 5:47pm UTC](https://community.fly.io/t/cloudflare-525-error-randomly-occurs/1798/45 "2024-05-17T17:47:30Z")

</div>

> [@morse](#):
>
> For anyone still having this issue, the easiest fix is using the flexible SSL mode in Cloudflare settings and disable “force https” in your `fly.toml` config

Notice that this approach does not work with shared IP-v4, you will need to create an AAAA record in Cloudflare and connect the IP-v6 IP with the proxy option. Cloudflare will automatically create an A record that points to the Cloudflare servers.

This is required because the shared ips use the host to route traffic, they don’t work in Cloudflare DNS.

---

_[View the full topic](https://community.fly.io/t/cloudflare-525-error-randomly-occurs/1798)._
