I’m setting up Traefik v2 as a reverse proxy on my home network. I have several services within and outside the docker instance of Traefik 2 working well as subdomains. When trying to get HA to work, I get the error
ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 192.168.86.6, but your HTTP integration is not set-up for reverse proxies
I had this before when setting up remote home assistant from HACS, and already have the below in my configuration.yaml. I added the .6 address (static IP of the reverse proxy) as well, but still no dice.
Here’s my http config snippet:
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.86.6
- 192.168.86.0/24
- 127.0.0.1
- ::1
And my app-hagarden.toml for traefik 2 (domain changed to example.com).
[http.routers]
[http.routers.garden-rtr]
entryPoints = ["https"]
rule = "Host(`garden.example.com`)"
service = "garden-svc"
middlewares = ["chain-noauth"]
[http.routers.garden-rtr.tls]
certResolver = "dns-cloudflare"
[http.services]
[http.services.garden-svc]
[http.services.garden-svc.loadBalancer]
passHostHeader = true
[[http.services.garden-svc.loadBalancer.servers]]
url = "http://192.168.86.42:8123" # or whatever your external host's IP:port is
Any ideas?
ETA: Here’s the error if I update to https://192.168.86.42:8123
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 334, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2022-04-06 08:21:26 ERROR (MainThread) [aiohttp.server] Error handling request