This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-07 16:56:30 +02:00
parent 428c531415
commit 1387e5a081
5 changed files with 34 additions and 4 deletions

View File

@@ -13,8 +13,27 @@
# environmentFile = ../secrets/nx2site/namecheap-creds.env;
# };
# };
services.nginx = {
enable = true;
};
# services.nginx = {
# enable = true;
# };
systemd = {
timers."namecheap-dynamic-dns" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "2m";
OnUnitActiveSec = "10m";
Unit = "namecheap-dynamic-dns.service";
};
};
services."namecheap-dynamic-dns" = {
script = ''
/home/nx2/nx2site/domain/update-namecheap.sh
'';
serviceConfig = {
Type = "oneshot";
User = "nx2";
};
};
};
};
}