Hello everyone,
I’m trying to setup a secure remote access to HA but nothing is working properly. Now I can only access HA via its IP address on my network (with https://).
What I did:
- Installed the DuckDNS and LetsEncrypt addon.
- Entered the following in the config of the addon:
{
"lets_encrypt": {
"accept_terms": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
},
"token": "myduckdnstoken",
"domains": [
"mydomain.duckdns.org"
],
"seconds": 300
}
- Entered the following in configurations.yaml:
http:
base_url: https://my-domain.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
- Rebooted.
- Yesterday the
https://mydomain.duckdns.org
was not working but I was able to access HA withhttps://hassio:8123
. Today after no changes made I can only access it viahttps://192.168.x.xxx:8123
- I cannot access the Pi on my network to change the config file.
- I tried to change the IP on DuckDNS to what my router gives me as my IP, and my public IP but none of that worked.
- Checked DuckDNS addon log, it just says “NOCHANGES OK”
- Setup a port forwarding in my router for port 8123 to 8123 set the protocol to TCP to the IP of the Pi, and I enabled “Enable (Auto Detect Default WAN IP/Interface)”
- I did NOT do the last change in the domain JSON settings as I was not able to find where to add the following as instructed at the very bottom of this page https://www.home-assistant.io/addons/duckdns/ :
{
...
"domains": ["my-domain.duckdns.org","*.my-domain.duckdns.org"],
...
}
I also looked for existing posts but was not able to find a solution. Any help would be greatly appreciated.