Just installed HA on a virtual machine in VMware. I am trying to make HA accessable from outside my home network. I own a domain example.com, and already have a nginx reverse proxy configured for other services in my house. I added a server block in my nginx copied from the hassio nginx documentation with a server name of hassio.example.com, and configured my dns properly. When I navigate to my hassio url, I am greeted with a login screen to HA, but once I login i receive a message: “Unable to connect to home assistant”
What did I do wrong?
Does it work after clicking retry? If so you might have http/2 enabled in nginx. We had a similar topic recently where a tool called nginx-proxy-manager was recommended if you don’t know how to configure http/2 in nginx.
After clicking retry it redirects me back to the login page, and then the same error occurs (thus entering a loop). I will try looking into http/2
Thanks
I Tried with http/2 both enabled and disabled. Nothing changed
Hi - what was your solution? I am having the very same symptoms with docker on Synology.
I have always used HTTPS on HASS (yes, for reasons) as well as NGINX handling HTTPS > HTTPS:8123
Now nothing I try will shake it…
If you are using the Synology Reverse Proxy, then you will also need provide a customer header.
Under “Custom Header” select “Create”, then select “WebSocket”.
This will create 2 entries, “Upgrade” and “Connection”.
Once done, Synology redirection to the home-assistant should work.
Hope that helps.
Leon
Hi Leon, great hint!! Solved my problem instantly. Who did you figure this out? Regards
Great news @invain
It’s just something I discovered years back while trying to get random services to pass through the RP. Can’t remember when or why exactly. But once I found the info online, I have never forgotten it