Trusted Networks debugging

I have home assistant in docker with host mode and trusted networks setup and am using nginx proxy manager that is on another computer in docker that is forwarding. I’ve set the trusted_networks the way the docks say, I have use_x_forwarded_for: true and I have the proxy’s IP on the network in and even the docker network.

But I still get a rejection on trusted local networks. And it’s completely a black box as to why it’s taking a tantrum.

I’ve tried turning on logging and there’s nothing in there even down to info (and then just spew at debug and I don’t even know what to grep for)

How does one diagnose why it’s taking a tantrum with trusted local networks so that I can get this fixed? I would assume it’s some header it doesn’t like or some value being passed to x_forwarded_for that isn’t lining up or something but I can’t prove that because I can’t get it to log the error.

Ideas?

1 Like

I’m having the same problem trying to set up trusted_networks.
I think everything is correct, but its being rejected.

i don’t know how to debug. It be great to see a "this is the IP & Subnet HA thinks you’re connecting from. It could even be a page behind homeassistant authentication login to look up that information and then enter it into the config…