Add Uptime Kuma
Add Uptime Kuma as as service, configure a reverse proxy and add it to Homepage.
This commit is contained in:
parent
bbbad11fd9
commit
44699fb007
4 changed files with 28 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
"rebuilding-symfony.oliverdavies.uk"
|
||||
"tailwindcss-demo.oliverdavies.uk"
|
||||
"talking-drupal-tailwindcss.oliverdavies.uk"
|
||||
"uptime.oliverdavies.uk"
|
||||
"wp-tailwind.oliverdavies.uk"
|
||||
"www.oliverdavies.uk"
|
||||
"zet.oliverdavies.uk"
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./homepage
|
||||
./samba.nix
|
||||
./uptime-kuma.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -34,6 +34,15 @@
|
|||
|
||||
{
|
||||
"Services" = [
|
||||
{
|
||||
"Uptime Kuma" = {
|
||||
description = "A fancy self-hosted monitoring tool";
|
||||
href = "https://uptime.oliverdavies.uk";
|
||||
icon = "uptime-kuma";
|
||||
siteMonitor = "http://localhost:${toString config.services.uptime-kuma.settings.PORT}";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
"Paperless-ngx" =
|
||||
let
|
||||
|
|
17
hosts/nixedo/services/uptime-kuma.nix
Normal file
17
hosts/nixedo/services/uptime-kuma.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue