diff --git a/config/instance-20221213-1915.nix b/config/instance-20221213-1915.nix index c3745be8..9c046db2 100644 --- a/config/instance-20221213-1915.nix +++ b/config/instance-20221213-1915.nix @@ -27,6 +27,7 @@ ./services/kubo.nix ./services/synapse.nix ./services/heisenbridge.nix + ./services/uptime-kuma.nix ]; boot.initrd.availableKernelModules = ["xhci_pci" "virtio_pci" "usbhid"]; diff --git a/config/services/uptime-kuma.nix b/config/services/uptime-kuma.nix new file mode 100644 index 00000000..edeb0f8e --- /dev/null +++ b/config/services/uptime-kuma.nix @@ -0,0 +1,17 @@ +{pkgs, ...}: { + services.uptime-kuma = { + enable = true; + settings = { + PORT = "45566"; + }; + }; + services.caddy.virtualHosts."status.chir.rs" = { + useACMEHost = "chir.rs"; + logFormat = pkgs.lib.mkForce ""; + extraConfig = '' + import baseConfig + + reverse_proxy http://127.0.0.1:45566 + ''; + }; +} diff --git a/zones/chir.rs.nix b/zones/chir.rs.nix index 5db13212..697370df 100644 --- a/zones/chir.rs.nix +++ b/zones/chir.rs.nix @@ -144,7 +144,7 @@ with dns.lib.combinators; let SOA = { nameServer = "ns1.chir.rs."; adminEmail = "lotte@chir.rs"; - serial = 33; + serial = 34; }; NS = [ "ns1.chir.rs." @@ -245,6 +245,7 @@ with dns.lib.combinators; let lotte = createZone {}; ipfs-nocdn = createZone oracleBase; ipfs.CNAME = ["ipfs-chir-rs.b-cdn.net."]; + uptime = createZone oracleBase; int = delegateTo [