Add site monitors
This commit is contained in:
parent
532d49dd58
commit
8baa3ea1cb
2 changed files with 36 additions and 22 deletions
|
@ -1,20 +1,25 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services =
|
||||||
homepage-dashboard = {
|
let
|
||||||
enable = true;
|
cfg = config.services.homepage-dashboard;
|
||||||
listenPort = 8097;
|
in
|
||||||
openFirewall = true;
|
{
|
||||||
|
homepage-dashboard = {
|
||||||
|
enable = true;
|
||||||
|
listenPort = 8097;
|
||||||
|
openFirewall = true;
|
||||||
|
|
||||||
services = import ./services.nix;
|
services = (import ./services.nix { inherit config; });
|
||||||
widgets = import ./widgets.nix;
|
widgets = import ./widgets.nix;
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts."nixedo.oliverdavies.uk" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
|
locations."/".proxyPass = "http://localhost:${toString cfg.listenPort}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts."nixedo.oliverdavies.uk" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "oliverdavies.uk";
|
|
||||||
|
|
||||||
locations."/".proxyPass =
|
|
||||||
"http://localhost:${toString config.services.homepage-dashboard.listenPort}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
{ config }:
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Media" = [
|
"Media" = [
|
||||||
{
|
{
|
||||||
"Jellyfin" = {
|
"Jellyfin" = {
|
||||||
description = "Jellyfin";
|
|
||||||
href = "https://jellyfin.oliverdavies.uk";
|
href = "https://jellyfin.oliverdavies.uk";
|
||||||
|
icon = "jellyfin";
|
||||||
|
description = "The Free Software Media System";
|
||||||
|
siteMonitor = "http://localhost:8096";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -13,11 +17,16 @@
|
||||||
{
|
{
|
||||||
"Services" = [
|
"Services" = [
|
||||||
{
|
{
|
||||||
"Paperless-ngx" = {
|
"Paperless-ngx" =
|
||||||
description = "Document management system";
|
let
|
||||||
href = services.paperless.settings.PAPERLESS_URL;
|
cfg = config.services.paperless;
|
||||||
icon = "paperless";
|
in
|
||||||
};
|
{
|
||||||
|
description = "Document management system";
|
||||||
|
href = cfg.settings.PAPERLESS_URL;
|
||||||
|
icon = "paperless";
|
||||||
|
siteMonitor = "http://localhost:${toString cfg.port}";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue