Compare commits

..

No commits in common. "6bac995f02293c5627a394418a31f1f37d3cf7b6" and "af06b6d5efe86624c964375035f7ccac0e861e89" have entirely different histories.

View file

@ -8,7 +8,6 @@ let
certloc = "/var/lib/acme/fi33.buzz"; certloc = "/var/lib/acme/fi33.buzz";
hostname = "git.fi33.buzz"; hostname = "git.fi33.buzz";
url = "https://git.fi33.buzz"; url = "https://git.fi33.buzz";
sshPort = lib.head config.services.openssh.ports;
in in
{ {
services = { services = {
@ -25,7 +24,7 @@ in
DOMAIN = hostname; DOMAIN = hostname;
HTTP_PORT = port; HTTP_PORT = port;
ROOT_URL = url; ROOT_URL = url;
SSH_PORT = sshPort; SSH_PORT = lib.head config.services.openssh.ports;
# keep-sorted end # keep-sorted end
}; };
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
@ -36,32 +35,6 @@ in
openssh.settings.AllowUsers = [ "git" ]; openssh.settings.AllowUsers = [ "git" ];
gatus.settings.endpoints = [
{
name = "Forgejo";
group = "Private Services";
inherit url;
interval = "5m";
conditions = [
"[STATUS] == 200"
"[CONNECTED] == true"
"[RESPONSE_TIME] < 500"
];
alerts = [ { type = "ntfy"; } ];
}
{
name = "Forgejo SSH";
group = "Private Services";
url = "ssh://${hostname}:${toString sshPort}";
interval = "5m";
conditions = [
"[CONNECTED] == true"
"[RESPONSE_TIME] < 500"
];
alerts = [ { type = "ntfy"; } ];
}
];
borgbackup.jobs = { borgbackup.jobs = {
onsite.paths = [ "/var/lib/forgejo" ]; onsite.paths = [ "/var/lib/forgejo" ];
offsite.paths = [ "/var/lib/forgejo" ]; offsite.paths = [ "/var/lib/forgejo" ];