Connect to home assistant web service

I can successfully log into the home assistant ssh service using remote.it, however when I try accessing the web service at http://localhost:8123 I get an http 400: bad request error.

I have home assistant hosted on a linux system and I can access an apache server at http://localhost just fine.

Figured out the problem. Had to enable reverse proxies in the Home Assistant http server by using the trusted_proxies: 127.0.0.1 option in the HA configuration.yaml.

1 Like

Thanks for the update on this, for everyone else, in your configuration.yaml file, edit the http setting like so:

http:
  # You must set the trusted proxy IP address so that Home Assistant will properly accept connections
  # Set this to your Remoteit Jumpbox IP, or localhost if if remote.it is running on the same machine as home assistant.
  trusted_proxies: 127.0.0.1
1 Like

The source I found also recommended use of the use_x_forwarded_for option which I put in my configuration.yaml file. It works fine with that option:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1