Home Assistant access via a Cloudflare Tunnel

Edit:

It suddenly works when I wake up today. I did nothing and simply keeps the setting in config.yaml.

Exactly same issue here.

Before I add the aforesaid http integration, I got a 400 error and HA logged the follows:

Logger: homeassistant.components.http.forwarded
Source: components/http/forwarded.py:114
Integration: HTTP (documentation, issues)
First occurred: 02:21:00 (1 occurrences)
Last logged: 02:21:00

A request from a reverse proxy was received from 10.0.3.2, but your HTTP integration is not set-up for reverse proxies

Then I added the following in my comfig.yaml

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.3.2

After that, I got a 404 error.

I’m pretty sure the tunnel works properly, as I can access other services by the same setting. Just HA is inaccessible. Any idea how to resolve it?