"Unable to connect to Home Assistant" via nginx reverse proxy

Sorry, should have mentioned that my domain is on Cloudflare and is configured to forward hassio.example.com to port 8123. It is reaching Home Assistant successfully as I get the HA login screen. After I enter my credentials, I see this: