Can't log in to HA with IIS reverse proxy (works locally)

Hello, I’ve set up HA on a Windows VM. Everything works fine locally.

For external access to all my resources I’m using IIS with custom domain and reverse proxy so that I have Let’s Encrypt that updates all my certificates regularly. This way I achieve HTTPS on the server level and all my local apps can run however they want. From what I can see this works as intended.

My issue is that I can’t login from web or mobile, I get the same error after logging in:
Unable to connect to Home Assistant.

image

All the logs are saying is:
Login attempt or request with invalid authentication from xxx.xxx.xxx.xxx

I managed to be semi-logged in with the mobile app as well. It still gives me the same error, however I can see when I charged my phone in the history.
image


I’ve enabled CORS for that URL and for the default homeassistant.local address.
I’ve allowed use_x_forwarded_for and added to trusted proxies:

  • Server IPv4 IP (192.168.0.X)
  • 2x Server IPv6 address
  • My public IP
  • My router local IP (192.168.0.X)

All of those showed up in the error logs at one point or another.

This is a fresh install, so I haven’t done much added yet. I read that sometimes devices/integrations try to authenticate before the user, so that error shows up - well I have only switches/bulbs/strips/IR blasters added as devices, Google Home + Echo Dot, as well as an OpenWRT integration that I stopped (commented it out in the YAML). The only addon I have is File Editor. Still no luck.

My assumption is that something on my dashboard is causing issues but I really don’t know what else to disable. Attaching my auto-generated dash and integrations just in case…

What am I missing?