summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/ddns.nix18
1 files changed, 12 insertions, 6 deletions
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";
};
}