quick newline fix and desc
This commit is contained in:
parent
1e083361ba
commit
da81471306
2 changed files with 6 additions and 7 deletions
|
|
@ -20,13 +20,12 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
displayDays = 90;
|
displayDays = 90;
|
||||||
intro = ''
|
intro = ''
|
||||||
This status page is written in pure bash. It tracks 90 days of
|
This page is written in Bash. It tracks 90 days of historical uptime
|
||||||
historical data per service. Each category may probe at its own
|
data for various services. This page regenerates every 1 minute.
|
||||||
interval; that's noted next to the category description.
|
|
||||||
'';
|
'';
|
||||||
categories = [
|
categories = [
|
||||||
{
|
{
|
||||||
description = "These first sites are all hosted personally.";
|
description = "My services";
|
||||||
intervalSeconds = 60;
|
intervalSeconds = 60;
|
||||||
services = [
|
services = [
|
||||||
{ name = "website"; url = "https://ily.rs"; }
|
{ name = "website"; url = "https://ily.rs"; }
|
||||||
|
|
@ -39,7 +38,7 @@
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
description = "Other services I like to keep track of.";
|
description = "Other services";
|
||||||
intervalSeconds = 300;
|
intervalSeconds = 300;
|
||||||
hideUrls = true;
|
hideUrls = true;
|
||||||
services = [
|
services = [
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
configFile = pkgs.writeText "uptime-config" (lib.concatStringsSep "\n" (
|
configFile = pkgs.writeText "uptime-config" ((lib.concatStringsSep "\n" (
|
||||||
(lib.imap0 (i: cat:
|
(lib.imap0 (i: cat:
|
||||||
"CAT\t${toString i}\t${toString cat.intervalSeconds}\t${if cat.hideUrls then "1" else "0"}\t${cat.description}"
|
"CAT\t${toString i}\t${toString cat.intervalSeconds}\t${if cat.hideUrls then "1" else "0"}\t${cat.description}"
|
||||||
) cfg.categories)
|
) cfg.categories)
|
||||||
|
|
@ -49,7 +49,7 @@ let
|
||||||
(lib.concatLists (lib.imap0 (i: cat:
|
(lib.concatLists (lib.imap0 (i: cat:
|
||||||
map (svc: "SVC\t${toString i}\t${svc.name}\t${svc.url}") cat.services
|
map (svc: "SVC\t${toString i}\t${svc.name}\t${svc.url}") cat.services
|
||||||
) cfg.categories))
|
) cfg.categories))
|
||||||
));
|
)) + "\n");
|
||||||
|
|
||||||
introFile = pkgs.writeText "uptime-intro" cfg.intro;
|
introFile = pkgs.writeText "uptime-intro" cfg.intro;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue