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