This commit is contained in:
Andrea Ciceri 2023-04-17 18:12:52 +02:00
parent 893480e3e3
commit 9771b35612
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
15 changed files with 388 additions and 42 deletions

View file

@ -40,9 +40,6 @@ in {
};
forceSSL = true;
enableACME = true;
# locations."/" = {
# proxyPass = "http://127.0.0.1:${builtins.toString config.services.hydra.port}";
# };
};
systemd.services.cgit-setup-repos = {
@ -54,4 +51,13 @@ in {
wantedBy = ["multi-user.target"];
script = builtins.toString cgit-setup-repos;
};
systemd.timers.cgit-setup-repos = {
wantedBy = ["timers.target"];
partOf = ["cgit-setup-repos.service"];
timerConfig = {
OnCalendar = "*-*-* 4:00:00"; # daily at 4 AM
Unit = "cgit-setup-repos.service";
};
};
}