Add site monitors

This commit is contained in:
Oliver Davies 2025-04-28 00:36:43 +01:00
parent 532d49dd58
commit 8baa3ea1cb
2 changed files with 36 additions and 22 deletions

View file

@ -1,20 +1,25 @@
{ config, ... }:
{
services = {
homepage-dashboard = {
enable = true;
listenPort = 8097;
openFirewall = true;
services =
let
cfg = config.services.homepage-dashboard;
in
{
homepage-dashboard = {
enable = true;
listenPort = 8097;
openFirewall = true;
services = import ./services.nix;
widgets = import ./widgets.nix;
services = (import ./services.nix { inherit config; });
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}";
};
};
}