Reverse proxy stopped working

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, but your HTTP integration is not set-up for reverse proxies

Which is how i got the 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/", 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'"

  server_port: 8123
  use_x_forwarded_for: true
  ip_ban_enabled: true
  login_attempts_threshold: 5

  external_url: ""


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 :slight_smile:

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 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.

OK looks good then, except this external_url but this shouldn’t be the main problem.

I see you have ban enabled, I don’t know the ban behavior but maybe you’re just banned from your own instance ? Just trying a guess here :stuck_out_tongue:

I don’t know SWAG, looks nice ! I see they have a readymade config for home-assistant are you using this ?

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?

Sure !

You still have an access via LAN right ? How dow you access to your HA instance from inside your LAN ?

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

When you want to access it through the reverse you are not in LAN ? Some routers don’t allow loopback…