I am trying to access my HA from outside of my network. I can get to the login page, but once I type the password (which I have right), the login “circle” displays for about 30 seconds and the kicks me right back to the login page.
I have home assistant installed on Arch Linux with apache.
Here is my vhost (it is enclosed in the VirtualHost *:80):
Hmmm, according to the documentation, if you’re using a proxy, which is in the IP range within your trusted networks, you shouldn’t be getting prompted for a password at all.
Indeed, if/when the IP ban kicks in, it’ll ban your proxy…
So, inside of the network, everything is fine. outside, it doesnt work. And, from what I can see, there is no IP ban yet. (assuming that is in the main folder with the configuration.yaml)
i have to wonder if this is a websockets issue? is that required for outside access?
And my understanding of the trusted networks is: If you access HA via a reverse proxy (like you do), the ip address arriving at HA is your proxy’s. If that ip address is listed in the range of trusted networks, nobody will be asked for a password, when accessing HA from the outside.
And, BTW: SSL/TLS is highly recommended when accessing HA from the outside. Otherwise you are sending your password in plaintext through the internet.
Thanks, I am still trying to figure out the websockets portion… it isn’t well documented… but I did set up the SSL. I was holding off on that until I could get it working, but decided to get that done now. Additionally, I removed trusted networks so that it wouldn’t give the world access to my house.
Thanks again, once I get this websockets thing figured out, I will post again.