I’m really new to HA and running HA in Docker on my Synology NAS. I’m trying to get SSL setup using duckdns and lets encrypt as per the guide but I’m running in to some issues as I never needed to SSH before and it appears the SSH commands are different for docker.
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for myhostname.duckdns.org
Cleaning up challenges
Problem binding to port 80: Could not bind to IPv4 or IPv6.
I’m not sure if I’m meant to be using that command seeing as though I’m running HA on Docker, I found another command but it won’t even run and fails with “bash: docker: command not found”
@bcowell
Not the way. You shouldn’t modify the docker.
Get the certificates on your NAS. I don’t have a Sinology but I think it’s a simple process in the NAS control panel
Then mount the volume where you have the certs into the HA container
I.e.
-v /etc/letsencrypt:/certs
Then point to the certs in the http section of your configuration.yaml file
Thanks for the help. I tried to create a new lets encrypt certificate in my Synology NAS but it fails even though I have ports 80 forwarded through to the NAS. I guess I have to find out how to resolve that over at the Synology forums before proceeding.
Not sure in synology, but for pc you need to forward 80 to 80 and 443 to 443.
Also just check theres not something else using port 80 in your system.
In my network I have a WDcloud drive and I have to disconnect it first time I set up letesencrypt.
Not an issue for future renewals
@bcowell did you ever get the letsencrypt to work? This is the first post i’ve come across talking about problems with getting letsencrypt set-up while running HA on Synology Docker. I’m not familiar with CLI commands, but your first post here helped me ssh into HA, but now i’m still not sure what to do on getting the letsencrypt cert set up. I got all other components al ready to go like the port forwards, duckdns, and even a google project. (because ultimately i want my google home to talk to HA without using the paid Nabu Casa service), but haven’t been able to find instructions that help based on HA on Synology Docker, without going into CLI details. Hope you can get me some answers. Thanks!
No sorry I gave up on that and bought a Raspberry Pi and installed Hassio, so many less hassles and everything is working now besides the occasional update breaking things.