Add tailnet homepage ingress

This commit is contained in:
Poby 2026-05-22 18:34:20 +09:00
parent e70822e6e4
commit 0c2c83adf4
No known key found for this signature in database
3 changed files with 53 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [
./hardware-configuration.nix
./disko.nix
../../services/homepage.nix
];
networking.hostName = "midgard";

48
services/homepage.nix Normal file
View file

@ -0,0 +1,48 @@
{...}: {
services.homepage-dashboard = {
enable = true;
listenPort = 8082;
openFirewall = false;
allowedHosts = "home.ridewithmin.com";
settings = {
title = "Poby Homelab";
headerStyle = "clean";
};
services = [
{
"Homelab" = [
{
"Yggdrasil" = {
description = "Ingress node";
href = "https://home.ridewithmin.com";
};
}
{
"Midgard" = {
description = "Application host";
href = "https://home.ridewithmin.com";
};
}
];
}
];
widgets = [
{
resources = {
cpu = true;
memory = true;
disk = "/";
};
}
{
search = {
provider = "duckduckgo";
target = "_blank";
};
}
];
};
}

View file

@ -33,5 +33,9 @@
virtualHosts."http://yggdrasil.tail6fc192.ts.net:8080".extraConfig = ''
respond "yggdrasil caddy ingress ok"
'';
virtualHosts."home.ridewithmin.com".extraConfig = ''
reverse_proxy http://midgard.tail6fc192.ts.net:8082
'';
};
}