From ae381bb102840bbe3016b59165610e51975503f7 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 Nov 2024 19:15:24 +0100 Subject: Use Cloudflare DDNS for AAAA records Signed-off-by: Mel --- modules/ddns.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/ddns.nix b/modules/ddns.nix index 103f3a9..c9d2abd 100644 --- a/modules/ddns.nix +++ b/modules/ddns.nix @@ -7,14 +7,20 @@ in services.ddclient = { enable = true; - # NameCheap DDNS parameters - use = "web, web=dynamicdns.park-your-domain.com/getip"; - protocol = "namecheap"; - server = "dynamicdns.park-your-domain.com"; + # Cloudflare DNS API parameters - username = "rnrd.eu"; + # dyn.com no longer supports HTTPS :( + # See: https://github.com/ddclient/ddclient/issues/597 + # TODO: Update to new usev6 option in 24.11 + extraConfig = '' + usev6=webv6, webv6=ipv6.icanhazip.com/ + ''; + protocol = "cloudflare"; + + username = "token"; + zone = domain; domains = [ "${me.name}.${domain}" ]; # TODO: use age - passwordFile = "/home/mel/ddclient.pw"; + passwordFile = "/home/mel/cloudflare-dns-token.pw"; }; } -- cgit 1.4.1