dyn_dns
This commit is contained in:
22
system-modules/nx2site/dyn_dns.nix
Normal file
22
system-modules/nx2site/dyn_dns.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, pkgs, domain, ... }:
|
||||
{
|
||||
sops.secrets = {
|
||||
# "nx2site/namecheap.pw" = { };
|
||||
# "nx2site/cloudflare/api-token-dns-edit" = { };
|
||||
"nx2site/cloudflare/global-api-key-env" = {
|
||||
owner = "root";
|
||||
};
|
||||
};
|
||||
services.cloudflare-dyndns = {
|
||||
enable = true;
|
||||
ipv4 = true;
|
||||
ipv6 = config.networking.enableIPv6;
|
||||
domains = [
|
||||
"${domain}"
|
||||
"*.${domain}"
|
||||
"ssh.${domain}"
|
||||
];
|
||||
proxied = true;
|
||||
apiTokenFile = config.sops.secrets."nx2site/cloudflare/global-api-key-env".path;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user