Cloudflare DDNS
Below is how to configure DDNS (Dynamic DNS) for Cloudflare.
Requirements
Section titled “Requirements”- A Cloudflare account and Cloudflare configured as your domains DNS servers
- API keys for your account with the correct permissions
- Requires
Zone.DNS:Editpermissions for the correct zone
- Requires
Enabling
Section titled “Enabling”The following variables are required:
cloudflare_api_token: # the API token of the Cloudflare accountcloudflare_ddns_enabled: true # `true` or `false` to enable/disable Cloudflare DDNS (default: `false`)cloudflare_ddns_domain: # the domain name of the Cloudflare zone (e.g. `example.com`), this will default to the `hms_docker_domain` defined in the `main.yml` filecloudflare_ddns_subdomain: # the subdomain record (e.g. `hmsdpublic` would be created as `hmsdpublic.example.com`) (default: `hmsdpublic`)cloudflare_ddns_proxied: 'true' # `'true'` or `'false'` to enable/disable proxying the traffic through Cloudflare (default: `'true'`) NOTE: quotes are requiredcloudflare_ddns_delete_record_on_stop: 'false' # If the record should be deleted when the container stops (default: `"false"`) NOTE: quotes are requiredcloudflare_ddns_create_ipv6_aaaa_record: false # Creates a `AAAA` record for IPv6 (default: `false`)