Traefik Revers Proxy Bad Gateway

I’m trying to get my reversproxy Traefik to route to Home Assistant until now this results in a Bad Gateway

Traefik lives in docker container on a different machine in my network

HA/configuration.yaml

http:
  ip_ban_enabled: true
  login_attempts_threshold: 5
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.0/8 <--- Homenetwork
    - 172.0.0.0/8 <--- Docker

traefik/fileConfig.yaml

http:
  routers:
    homeassistant:
      rule: "Host(`homeassistant.mydomain.com`)"
      service: homeassistant-service
      entryPoints:
        - https
      tls:
        certResolver: letsencrypt

  services:
    homeassistant-service:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: "http://homeassistant.local:8123/"
[....]
  middlewares:
    # Authelia guard
    auth:
      forwardauth:
        address: http://authelia:9091/api/verify?rd=https://auth.mydomain.com/ # replace auth with your authelia container name
        trustForwardHeader: true
        authResponseHeaders:
          - Remote-User
          - Remote-Groups
          - Remote-Name
          - Remote-Email

    # Authelia basic auth guard
    auth-basic:
      forwardauth:
        address: http://authelia:9091/api/verify?auth=basic
        trustForwardHeader: true
        authResponseHeaders:
          - Remote-User
          - Remote-Groups
          - Remote-Name
          - Remote-Email

    # Security headers
    securityHeaders:
      headers:
        customResponseHeaders:
          X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex"
          X-Forwarded-Proto: "https"
          server: ""
        customRequestHeaders:
          X-Forwarded-Proto: "https"
        sslProxyHeaders:
          X-Forwarded-Proto: "https"
        referrerPolicy: "same-origin"
        hostsProxyHeaders:
          - "X-Forwarded-Host"
        contentTypeNosniff: true
        browserXssFilter: true
        forceSTSHeader: true
        stsIncludeSubdomains: true
        stsSeconds: 63072000
        stsPreload: true

Neither in the Home Assistant nor the Traefik logs anything shows up and Traefik reports a healthy service, so what am I missing here?

Alright, I solved the problem. The issue was that my traefik container wasn’t aware to which IP the FQDN http://homeassistant.local:8123/ was pointing. I of course also tried the IP before but also important is that after changes to the http: part in the Home Assistant configuration.yaml the Home Assistant vm needs to be rebooted for the changes to take effect.