I’m using the NGINX Home Assistant SSL proxy add-on. It seems to be configured more-or-less correctly. I can visit my Home Assistant box by going to https://subdomain.duckdns.org and it works with no SSL errors. Wonderful.
The problem is that the connection never stays working for very long. After some indeterminate period of time the entities in the front end will stop updating and my browser will say something about losing connection. I can manually refresh the page and things start working again.
All I see in the add-on’s logs are messages like this:
I can access Home Assistant via my duckdns subdomain, but if I try to access https://homeassistant.local I get errors about SSL_ERROR_UNRECOGNIZED_NAME_ALERT. I don’t think that has anything to do with my problem, but there it is.
I don’t know if it matters or not, but I do not have the “NGINX Proxy Manager” add-on installed.
I use uptime kuma to monitor my HA install and its shown me the duckdns is really unstable. I might consider using something like https://freedns.afraid.org/ for your DNS instead. Super easy to setup.
Also, Iirc, the duckdns addon forces SSL, even when accessed locally. Before I moved off using the duckdns addon, I had these in my configuration.yaml file:-
I might not understand things properly, but wouldn’t DuckDNS stability issues manifest as problems establishing a connection? I can always connect to my server, but the continued connection is what fails after a while.
I’m not sure its your underlying issue.
The short answer is yes, a failure of DNS resolution would cause connection issues, but when I say it was unstable, uptime kuma would lose its connection (say) once every few days or weeks. Your description sounds like its more frequent than that ?
Yes, it is constant. I can open a browser window and immediately connect to Home Assistant. If I walk off for a little while it is just about guaranteed that the connection will be lost when I get back.