filmov
tv
How to setup DuckDNS domain name and Lets Encrypt SSL certificate for Home Assistant

Показать описание
This video is a tutorial on how to setup DuckDNS domain name and Lets Encrypt SSL certificate for Home Assistant
First things first, you need to know what your public IP is, so lets go to....
From there, you need to make sure that you have port forwarding setup....
- port 443 needs to be open to your home assistant server on whatever port you are using
- port 80 needs to be open temporarily to your home assistant server for lets encrypt to download ssl cert. (This will also need to be open at least every 3 months to update the certificate)
Once you know your IP and have the correct ports open, you are ready to setup a domain name, so go to....
Once you are logged in and have setup a domain name to use, lets move over to the command line and download our new ssl cert.
Lets go ahead and stop home assistant services while we perform the ssl cert download...
You need to create a folder for certbot-auto inside our home assistant directory...
mkdir certbot
cd certbot
chmod a+x certbot-auto
./certbot-auto certonly --standalone --standalone-supported-challenges http-01--email (YOUR EMAIL HERE) -d (YOUR NEW DOMAIN NAME HERE)
Now that is done, lets make sure we have the right permissions setup....
sudo su -
cd /etc/letsencrypt
chmod -R 0755 live
chmod -R 0755 archive
just to make sure we have the files we need....
cd live/(YOUR DOMAIN NAME)
exit
Now lets update our home assistant config
base_url: (DOMAIN NAME):8123 (or whatever port you use)
Reboot home assistant for the changes to take....
That should be it, you should now be able to hit it via https using your new domain name.....
If you like the video, please subscribe to my channel. If you have any questions, hit me up in the comments below. Also, if there are any videos you would like to see, let me know as well....
First things first, you need to know what your public IP is, so lets go to....
From there, you need to make sure that you have port forwarding setup....
- port 443 needs to be open to your home assistant server on whatever port you are using
- port 80 needs to be open temporarily to your home assistant server for lets encrypt to download ssl cert. (This will also need to be open at least every 3 months to update the certificate)
Once you know your IP and have the correct ports open, you are ready to setup a domain name, so go to....
Once you are logged in and have setup a domain name to use, lets move over to the command line and download our new ssl cert.
Lets go ahead and stop home assistant services while we perform the ssl cert download...
You need to create a folder for certbot-auto inside our home assistant directory...
mkdir certbot
cd certbot
chmod a+x certbot-auto
./certbot-auto certonly --standalone --standalone-supported-challenges http-01--email (YOUR EMAIL HERE) -d (YOUR NEW DOMAIN NAME HERE)
Now that is done, lets make sure we have the right permissions setup....
sudo su -
cd /etc/letsencrypt
chmod -R 0755 live
chmod -R 0755 archive
just to make sure we have the files we need....
cd live/(YOUR DOMAIN NAME)
exit
Now lets update our home assistant config
base_url: (DOMAIN NAME):8123 (or whatever port you use)
Reboot home assistant for the changes to take....
That should be it, you should now be able to hit it via https using your new domain name.....
If you like the video, please subscribe to my channel. If you have any questions, hit me up in the comments below. Also, if there are any videos you would like to see, let me know as well....
Комментарии