ansible-nas/docs/applications/cloudflare_ddns.md

21 lines
1.2 KiB
Markdown
Raw Normal View History

2019-01-15 23:24:18 +00:00
# Cloudflare Dynamic DNS Updater
2022-07-25 20:18:57 +00:00
Homepage: <https://github.com/joshuaavalon/docker-cloudflare>
Cloudflare: <https://www.cloudflare.com>
2019-01-15 23:24:18 +00:00
If you want your Ansible-NAS accessible externally then you'll need a domain name. You'll also need to set a wildcard
host A record to point to your static IP, or enable this container to automatically update Cloudflare with your dynamic IP address.
## Usage
2020-01-25 23:40:26 +00:00
Set `cloudflare_ddns_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
2019-01-15 23:24:18 +00:00
2022-06-17 23:27:15 +00:00
Set `cloudflare_token` to the one you grab from the Cloudflare UI (more below).
2019-01-15 23:24:18 +00:00
## Specific Configuration
2022-07-25 20:18:57 +00:00
Make sure you set your domain (if different than the ansible-nas default) and access token details within your `inventories/<your_inventory>/nas.yml` file. If you need to create an API token, see [https://github.com/joshuaavalon/docker-cloudflare/#api-token](https://github.com/joshuaavalon/docker-cloudflare/#api-token) for instructions.
Cloudflare has deprecated global API key authentication. If you have an older ansible-nas configuration using a global API key, you can upgrade to the API token-based authentication by removing the `cloudflare_api_key` variable from your local `nas.yml` configuration file and setting the `cloudflare_token` variable appropriately.