Note: Unmaintained! Please use cloudflare integration:
Hass.io Custom Domain with free CloudFlare DNS hosting, DDNS and Let’s Encrypt.
Features:
Automatic A record creation with current IP.
Domain or Subdomain supported.
Dynamic DNS using the CloudFlare API, monitors changes and updates IP every 5 mins.
Let’s Encrypt certificate generation via DNS Challenge.
Automatic DNS Challenge TXT record generation & cleanup.
This addon came about due to my inability to use the 2 current external access add-ons for my use case.
Firstly I wanted to use my own domain rather than Duckdns. Secondly I didn’t want to open port 80 to the world and the Let’s Encrypt add-on has a HTTP challenge which requires it.
Using the CloudFlare API the add-on will automatically update your IP address which negates the need for a third party DDNS service.
The Let’s Encrypt certificate generation code is from the Duckdns add-on, if I have incorrectly assigned license or credit please let me know.
I’ll do my best to support any issues. Please provide feedback!
Repo URL:
Installation:
Quick & Dirty get started guide:
1. CloudFlare
Sign up for free account.
Add your base domain (no need to create any DNS records).
Make a note of the CloudFlare name servers.
Turn off the free SSL option under the Crypto menu (SSL to Off & Disable Universal SSL).
2. Domain Registrar
Change nameservers for your domain to point to Cloudflare.
3. Home Router
Forward desired public facing port (TCP & UDP) to your Hassio local IP & port (default local port is 8123).
4. Hassio config
Edit config file with your CloudFlare Global API Key, your CloudFlare email address and domain.
Hit start and wait for it to create the certificates.
Hi there, I seem to have an issue with this. Configured everything over on cloudflare, added domain and cloudflare account in addon configuration page and added config in configuration.yaml. I start the addon but log is empty and when I reload it shows as not started. Any ideas?
Newb here.
I created a new name in freenom, created an account in cloudflare and added a site (the one created in freenom).
Now in CloudFlare its written “pending nameserver update” under my site
I don’t get which are the nameserver I have to put in freenom
Thank you so much for this! I’ve been trying to get things working with DuckDNS and Let’s Encrypt for weeks, but this is so much better because it a) actually works and b) gives me a use for one of my spare domain names.
I have my own domain that I use for website on some 3rd party servers. Now I’d like to use subdomain for accessing my homeassistant (with dynamic IP). For example: