Unable to connect to Home Assistant error

  • Home Assistant OS 8.4 running in it’s own VM
  • Off box NGINX Proxy Manager

I can connect directly to the HA box, but going through NPM on the LAN gives that error “Unable to connect to Home Assistant.”

Here’s what’s in my configuration.yaml: This covers my whole LAN.
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.16.0.0/16

I see this in the NPM proxy host log.

2022/08/14 13:07:18 [error] 345#345: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 172.16.10.169, server: ha.domain.org, request: "GET /lovelace HTTP/2.0", upstream: "http://172.16.2.10:8123/lovelace", host: "ha.domain.org"
2022/08/14 13:07:18 [error] 345#345: *860 connect() failed (111: Connection refused) while connecting to upstream, client: 172.16.10.169, server: ha.domain.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.16.2.10:8123/api/websocket", host: "ha.domain.org"
2022/08/14 13:07:20 [error] 345#345: *52 connect() failed (111: Connection refused) while connecting to upstream, client: 172.16.10.169, server: ha.domain.org, request: "GET /service_worker.js HTTP/2.0", upstream: "http://172.16.2.10:8123/service_worker.js", host: "ha.domain.org", referrer: "https://ha.domain.org/service_worker.js"

I don’t see anything in home-assistant.log. When I first try to connect it has me authenticate, and then just goes into this loop of being unable to connect.