Automatically update outdated and add new DNS records to your Cloudflare zone(s) whenever an app is deployed or an apps domains have been updated.
$ dokku plugin:install https://github.com/kldzj/dokku-cloudflare-dns.git
- Grab the IPv4 address of your Dokku instance
- Grab a new and restricted Cloudflare API token; should have permission to edit DNS records for all the zones you want to manage (Help)
Run:
$ dokku config:set --global CF_SERVER_IP=YOUR_DOKKU_SERVER_IP \
CF_TOKEN=YOUR_CLOUDFLARE_API_TOKEN