ace ++
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user