Home Assistant keeps rejecting traefik as an untrusted proxy

So um hey, I’m trying to migrate an existing Home Assistant OS install over to a Home Assistant Container on a full docker server. And so far after getting it to copy over the data from a backup. It seems to work. But i’m having issues with my reverse proxy traefik, and subsequently getting to the dashboards.

Specifically, I keep getting errors about my trusted proxies . It keeps saying

2023-04-27 10:34:19.240 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.20.1.10

Where 172.20.1.10 is the address of the traefik container on it’s own network with an IPv4 gateway of 172.20.0.1

This is what my config file section for Home Assistant looks like within configuration.yaml:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.20.1.10

Both HA and Traefik are capable of seeing each other on the network and are running under bridge mode.

After you made those edits did you:

  1. Run the configuration check command
  2. Restart Home Assistant

Yes, I did