1
0
Fork 0

Hevana: switch from Oink to DDClient

This commit is contained in:
Aires 2024-11-08 20:04:11 -05:00
parent 2ccda9b918
commit a648c16525

View file

@ -40,30 +40,17 @@ in
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
# Enable dynamic DNS with Porkbun # Enable dynamic DNS with Porkbun
services.oink = { services.ddclient = {
enable = true; enable = true;
settings = { configFile = pkgs.writeText "ddclient.conf" ''
apiKey = config.secrets.networking.porkbun.api.apiKey; use=web, web=checkip.dyndns.com/, web-skip='IP Address'
secretApiKey = config.secrets.networking.porkbun.api.secretKey; protocol=porkbun
}; apikey=${config.secrets.networking.porkbun.api.apiKey}
domains = [ secretapikey=${config.secrets.networking.porkbun.api.secretKey}
{ *.${config.secrets.networking.domains.primary},*.${config.secrets.networking.domains.blog}
domain = config.secrets.networking.domains.blog; cache=/tmp/ddclient.cache
subdomain = ""; pid=/var/run/ddclient.pid
} '';
{
domain = config.secrets.networking.domains.blog;
subdomain = "*";
}
{
domain = config.secrets.networking.domains.primary;
subdomain = "";
}
{
domain = config.secrets.networking.domains.primary;
subdomain = "*";
}
];
}; };
# Configure the system. # Configure the system.