I have HA running on my Synology NAS with a custom domain from DuckDNS and SSL from LetsEncrypt. I’m using my Synology as proxy server (which basically is nginx).
My router has port forwards for 443 to my Synology
https://foo.duckdns.org shows the Home Assistant login page. However when trying to login, the login page gives an error
Unable to connect to Home Assistant. Retry
In my console I can see that the websocket gives an error
Error during WebSocket handshake: Unexpected response code: 400
Your HA instance is not running on 127.0.0.1. In HA conf change 127.0.0.1 to the ip of your nas and the info in proxy pass for nginx should definitely not be 127.0.01:8123 more likely the ip ip your nas, (192.1bluuurrr). There is never any point in blurring a private ip…
And last one: I created certificate with DuckDNS addon on HA, but I see in first post it has been added or imported on Synology NAS?
Whenever I go to xxxx.duckdns.org it tell me that certificate is wrong (it uses the already on the NAS existing xxxx.synology.me certificate)
Thanks for being critical! You point is clear!
Sorry i bothered you.
I was asking because I’m struggling already for a long time to get things working, I tried many options and configurations and I’m at the point to give up.
What didn’t work before did work today, I was able to register the Let’s Encrypt certificate (xxx.duckdns.org) directly on my Synology NAS. I assume some other settings I found here helped as well.
I have a similar setup with external port 18881 (not the real one). Reverse proxy on my Synology to http instance of HA.
All work well but some time when I try to connect remotely it can’t connect. I must retry in a couple of seconds and then works. Same thing for the Google integration. When this happens I saw a websocket error in the log (Disconnected: Did not receive auth message within 10 seconds).
I haven’t configured the http: section but I had add the trusted_networks with the full range of my home network.