New to HomeAssistant - Cant get SSL proxy to work

Jeez I think I would have figured this out as this is definitely not the first time I’m using reverse proxies.

Setup

VM (on xcp-ng) running Home Assistant
Ubuntu VM (on freenas) running docker traefik

I’m trying to use traefik as a reverse proxy for Home assistant

Home Assistant (known as -homeassistant.domain.com-) on 10.0.20.10
-ha.domain.com- (reverse proxy) on 10.0.1.95

I’ve obtained SSL cert via LE for the traefik reverse proxy and confirm within traefik dashboard

I can reach http://10.0.20.10:8123 directly and http://homeassistant.domain.com:8123

Traefick Reverse Proxy via the following config:

http:
  routers:
    ha.domain.com:
      rule: "Host(`ha.domain.com`)"
      entryPoints:
        - web
        - websecure
      service:
        - sv_proxy_pass_ha.domain.com@file
      tls:
        options: modern@file
        certResolver: le
        domains:
          - main: ha.domain.com
            sans:
              - ha.domain.com
  services:
      sv_proxy_pass_ha.domain.com:
        loadBalancer:
          servers:
            - url: http://homeassistant.domain.com:8123

Configuration of homeassistant
I’ve edited /config/configuration.yaml (and totally killed the trusted proxies section – yes I’m aware its redundant but I was desperate).


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.1.0/24
    - 10.0.20.0/24
    - 127.0.0.1
    - ::1
    - 10.0.1.95

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

I’m receiving this error:

2021-09-07 02:42:21 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 10.0.1.95, but your HTTP integration is not set-up for reverse proxies

So I don’t get it – why isn’t home assistant setup for reverse proxies? I’m really confused at this point.

Have you tried restarting the home assistant after the change . Also try removing the ip explicitly as you have already mentioned the subnet. This worked for me atleast