feat(tyr): move away from duckdns.
This commit is contained in:
parent
f827a67928
commit
f37caabca1
4 changed files with 27 additions and 5 deletions
|
|
@ -79,15 +79,29 @@
|
|||
''"syncthing.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"wallos.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"assistant.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"ddns.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Setup duck dns for dynamic dns
|
||||
services.duckdns = {
|
||||
enable = true;
|
||||
domains = ["cronyakatsuki"];
|
||||
tokenFile = "${config.age.secrets.duckdns.path}";
|
||||
# Setup ddns-updater
|
||||
services.ddns-updater.enable = true;
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.ddns.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:8000";
|
||||
}
|
||||
];
|
||||
|
||||
routers.ddns = {
|
||||
rule = "Host(`ddns.home.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "ddns";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@
|
|||
file = ../../../secrets/traefik.age;
|
||||
owner = "traefik";
|
||||
};
|
||||
ddns = {
|
||||
file = ../../../secrets/ddns.age;
|
||||
path = "/var/lib/ddns-updater/config.json";
|
||||
owner = "nobody";
|
||||
group = "nogroup";
|
||||
symlink = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
BIN
secrets/ddns.age
Normal file
BIN
secrets/ddns.age
Normal file
Binary file not shown.
|
|
@ -43,4 +43,5 @@ in {
|
|||
"wg-tyr.age".publicKeys = systems ++ users;
|
||||
"duckdns.age".publicKeys = systems ++ users;
|
||||
"glance.age".publicKeys = systems ++ users;
|
||||
"ddns.age".publicKeys = systems ++ users;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue