2024-07-26 22:12:48 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2023-12-16 22:41:06 +01:00
|
|
|
age.secrets.cloudflare_token_dns = {
|
2024-03-05 00:34:50 +01:00
|
|
|
rekeyFile = config.node.secretsDir + "/cloudflare_api_token.age";
|
2023-12-16 22:41:06 +01:00
|
|
|
mode = "440";
|
|
|
|
};
|
2024-01-15 02:13:46 +01:00
|
|
|
# So we only update the A record
|
|
|
|
networking.enableIPv6 = false;
|
2023-12-16 22:41:06 +01:00
|
|
|
services.ddclient = {
|
|
|
|
enable = true;
|
2024-01-11 22:42:03 +01:00
|
|
|
zone = config.secrets.secrets.global.domains.web;
|
2023-12-16 22:41:06 +01:00
|
|
|
protocol = "Cloudflare";
|
|
|
|
username = "token";
|
2024-06-30 19:53:19 +02:00
|
|
|
usev4 = "webv4, webv4='https://cloudflare.com/cdn-cgi/trace', webv4-skip='ip='";
|
|
|
|
usev6 = "";
|
2023-12-16 22:41:06 +01:00
|
|
|
passwordFile = config.age.secrets.cloudflare_token_dns.path;
|
2024-07-26 22:12:48 +02:00
|
|
|
domains = [ config.secrets.secrets.global.domains.web ];
|
2023-12-16 22:41:06 +01:00
|
|
|
};
|
|
|
|
}
|