Ive been using HomeAssistant for about a year behind my reverse proxy without any issues. I noticed the other day i was way behind on updates and did them and now my proxy no longer works and i cannot for the life of me figure it out.
This is the relevant data in my configuration.yaml - can anyone see what im doing wrong here? Ive been messing with it for a few days with no luck. I removed the trusted_proxies section then hit my proxy and saw this message:
2021-09-03 08:26:14 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 192.168.0.51, but your HTTP integration is not set-up for reverse proxies
Which is how i got the 192.168.0.51 address which is below in my config. Also saw some people mention the 172 number below as being part of the docker address and i added that but it didnt help either. I was getting just a home assistant logo saying it was unable to connect but now im getting a blank screen. Last night in the logs while messing around i got it to through a http 400 error but cant get that to replicate itself now either.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
What reverse proxy are you using ? Is it from any HA addon or external ?
External : you should know the IP of this because you set this up…
Addon : docker range
The external_url is deprecated (maybe even not more supported) since now it’s defined in HA frontend in configuration => General. You should remove that.
BTW, wich kind of installation you have of HA ? and what version are you using ?
Using HomeAssistant OS in a vm for hass - reverse proxy is SWAG from LinuxServer.io on unraid. If you arent familiar with it, thats the new name for their letsencrypt nginx reverse proxy container. It is external and is running on the .51 ip which is why i added that one in the config.
I tried it with and without the ban piece and have removed the external_url but the same thing still happens. I go to a blank screen, no error messages or anything. Nothing in the logs either. If i try the mobile app it just says unable to connect and once again, nothing in the logs.
As for the readymade config, no, i wasnt aware of it and a brief google isnt helping me. Have a link by chance?
I can access it on LAN via the ip:port without issue. My main issue right now is that my smartthings was pulling in through my proxy and now none of my automations work because smartthings isnt working