Add Uptime Kuma as as service, configure a reverse proxy and add it to Homepage.
17 lines
364 B
Nix
17 lines
364 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services = {
|
|
uptime-kuma.enable = true;
|
|
|
|
nginx.virtualHosts."uptime.oliverdavies.uk" = {
|
|
forceSSL = true;
|
|
useACMEHost = "oliverdavies.uk";
|
|
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString config.services.uptime-kuma.settings.PORT}";
|
|
recommendedProxySettings = true;
|
|
};
|
|
};
|
|
};
|
|
}
|