mauville: setup ddclient

This commit is contained in:
Aly Raffauf 2024-06-25 21:47:48 -04:00
parent e85b3a1435
commit 88a65597a5
3 changed files with 20 additions and 0 deletions

View file

@ -19,6 +19,8 @@ in {
./home.nix ./home.nix
]; ];
age.secrets.cloudflare.file = ../../secrets/cloudflare.age;
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
systemd-boot.enable = true; systemd-boot.enable = true;
@ -57,6 +59,23 @@ in {
}; };
services = { services = {
ddclient = {
enable = true;
domains = [
"music.raffauflabs.com"
"plex.raffauflabs.com"
"podcasts.raffauflabs.com"
"raffauflabs.com"
];
interval = "10min";
passwordFile = config.age.secrets.cloudflare.path;
protocol = "cloudflare";
ssl = true;
use = "web, web=dynamicdns.park-your-domain.com/getip, web-skip='Current IP Address: '";
username = "token";
zone = "raffauflabs.com";
};
fail2ban.enable = true; fail2ban.enable = true;
nginx = { nginx = {

BIN
secrets/cloudflare.age Normal file

Binary file not shown.

View file

@ -17,6 +17,7 @@ let
userKeys = builtins.map (user: builtins.readFile ./publicKeys/${user}.pub) users; userKeys = builtins.map (user: builtins.readFile ./publicKeys/${user}.pub) users;
keys = systemKeys ++ userKeys; keys = systemKeys ++ userKeys;
in { in {
"cloudflare.age".publicKeys = keys;
"lastFM/apiKey.age".publicKeys = keys; "lastFM/apiKey.age".publicKeys = keys;
"lastFM/secret.age".publicKeys = keys; "lastFM/secret.age".publicKeys = keys;
"spotify/clientId.age".publicKeys = keys; "spotify/clientId.age".publicKeys = keys;