mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
Add tailnet homepage ingress
This commit is contained in:
parent
e70822e6e4
commit
0c2c83adf4
3 changed files with 53 additions and 0 deletions
48
services/homepage.nix
Normal file
48
services/homepage.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue