Hi all,
I did spend a bit of time trying to get it to work and reading forums but i can’t seem to find any answers.
First of all, I have updated my configuration.yaml with the required x_forwarding and trusted proxies, and have verified that they are saved and loaded.
I’m running haOS on a raspberry pi 4. HA is running on port 8123. I’ve configured DuckDNS and LetsEncrypt, so my domain name from duckDNS is correctly pointing to my IP address. At first i forwarded port 8123 to my HA, and I had HA itself running on HTTPS by updating the config.yaml to use the cert’s key. That was working fine, but it did not let me access HA using HTTP, and the app broke when I was using it locally.
I’ve installed NGINX, the official ‘NGINX Home Assistant SSL Proxy’. it seems to be all configured correctly.
This is where things get weird. I’m able to access HA on port 8123 as normal. It’s on HTTP and is not secured with a cert.
However, when i try to access homeassistant.local on https it does not seem to work.
If I hit port 443 using HTTP, I can see that nginx is active, as it gives me an error saying that a HTTP request was sent to the HTTPS port. This is expected
However, when i hit port 443 using https, I get this error
It’s not a Nginx error, or a server responding with 400. Chrome is not able to establish a connection at all. The error ‘SSL_UNRECOGNISED_NAME_ALERT’ is not something I’ve come across before. I’m at a loss, it seems that nginx is not working when I send it a https request? If anyone has experienced something like this, some direction would be greatly appreciated. I tried to get the traditional connection logs from Nginx and it does not seem to be exposed to HA. I also cannot find the default NGINX configuration file that nginx uses to route requests. I’ve used nginx at work, but it looks like a lot has been abstracted away from us.
Thanks