Remote connection loop "Unable to connect to Home Assistant”

Hello everyone!

For several weeks now I’ve had a problem with Home Assistant and the remote connection via Nginx Proxy Manager & Cloudflare.
In fact, the connection works fine, but as soon as I enter login and password, I always get the same two messages over and over again, regardless of the platform.

And as soon as I connect locally, I get this message.

For Nginx, I use the same method as all my other applications, with which I have no problems.
And I think I’ve entered all the extra lines I need in the Home Assistant configuration.yaml file.
Anyway, it’s driving me crazy because no matter what tuto I look at, I can’t see what I’m doing wrong :sweat_smile:

I hope you can help me!
Thanks in advance

Ok, I understand it’s definitely a websockets problem, but I still don’t see how to solve the situation.