Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400: Bad Request when trying to access HA from remote server (solved) #3

Closed
filipiff opened this issue Sep 21, 2021 · 2 comments
Closed

Comments

@filipiff
Copy link

I put this info just for reference because I already solved the problem.

On my setup I use on remote server a docker container with the "linuxserver/openssh-server:latest" image and Traefik as a reverse proxy server to serve the internal http service to a public URL like https://homeassistant.mydomain.com.

My local HA instance is on a Raspberry Pi 3 with hass. The IP was set by dynamic IP from the internal router DHCP.

After the first installation & configuration everything was working perfectly, but some days later I began to get those "400: Bad Request" errors when trying to access my public HA address.

I discovered then that my local HA has changed his IP address and that this change wasn't reflected in the configuration.yaml on the [http] section, variable "trusted_proxies".

Replacing the IP with the new one, did solved the problem.

Maybe on the documentation should be mentioned that there is also this "trusted proxy" configuration setting in configuration.yaml

@iosoft
Copy link

iosoft commented Jul 5, 2022

I am facing the same issue.
https://e3606f60fce574.lhrtunnel.link/

What should be the "trusted proxy" value?

@ThomDietrich
Copy link
Owner

Hey!
This trusted proxy thing was introduced a few months ago and I just couldn't find the 10min to document this... 😅 Any volunteers to propose a few words for README or DOCS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants