feat: uptime kuma on status.*
This commit is contained in:
parent
c3ef189799
commit
3bc8264d27
2 changed files with 28 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
./forgejo.nix
|
||||
./wynne.nix
|
||||
./fail2ban.nix
|
||||
./uptime-kuma.nix
|
||||
];
|
||||
|
||||
networking.hostName = "lab";
|
||||
|
|
|
|||
27
hosts/lab/uptime-kuma.nix
Normal file
27
hosts/lab/uptime-kuma.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.caddy.virtualHosts."status.ily.rs" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:3001
|
||||
encode zstd gzip
|
||||
'';
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."status.wynne.rs" = {
|
||||
extraConfig = ''
|
||||
redir https://status.ily.rs{uri} permanent
|
||||
'';
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.uptime-kuma = {
|
||||
image = "louislam/uptime-kuma:1";
|
||||
podman.user = "podman";
|
||||
volumes = [
|
||||
"/srv/uptime-kuma/data:/app/data"
|
||||
];
|
||||
ports = [ "127.0.0.1:3001:3001" ];
|
||||
};
|
||||
|
||||
# Workaround for NixOS/nixpkgs#410857 until backport of #475089 lands
|
||||
systemd.services.podman-uptime-kuma.serviceConfig.Delegate = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue