Merge pull request 'add uptime-kuma' (#159) from add-update-kuma into main
Reviewed-on: #159
This commit is contained in:
commit
925c81829d
3 changed files with 20 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
||||||
./services/kubo.nix
|
./services/kubo.nix
|
||||||
./services/synapse.nix
|
./services/synapse.nix
|
||||||
./services/heisenbridge.nix
|
./services/heisenbridge.nix
|
||||||
|
./services/uptime-kuma.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "virtio_pci" "usbhid"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "virtio_pci" "usbhid"];
|
||||||
|
|
17
config/services/uptime-kuma.nix
Normal file
17
config/services/uptime-kuma.nix
Normal file
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -144,7 +144,7 @@ with dns.lib.combinators; let
|
||||||
SOA = {
|
SOA = {
|
||||||
nameServer = "ns1.chir.rs.";
|
nameServer = "ns1.chir.rs.";
|
||||||
adminEmail = "lotte@chir.rs";
|
adminEmail = "lotte@chir.rs";
|
||||||
serial = 33;
|
serial = 34;
|
||||||
};
|
};
|
||||||
NS = [
|
NS = [
|
||||||
"ns1.chir.rs."
|
"ns1.chir.rs."
|
||||||
|
@ -245,6 +245,7 @@ with dns.lib.combinators; let
|
||||||
lotte = createZone {};
|
lotte = createZone {};
|
||||||
ipfs-nocdn = createZone oracleBase;
|
ipfs-nocdn = createZone oracleBase;
|
||||||
ipfs.CNAME = ["ipfs-chir-rs.b-cdn.net."];
|
ipfs.CNAME = ["ipfs-chir-rs.b-cdn.net."];
|
||||||
|
uptime = createZone oracleBase;
|
||||||
|
|
||||||
int =
|
int =
|
||||||
delegateTo [
|
delegateTo [
|
||||||
|
|
Loading…
Reference in a new issue