Add unmanaged hosts

main
kalle 2025-02-05 20:43:42 +01:00
parent df3c13c010
commit 4d6791ee9b
5 changed files with 58 additions and 3 deletions

17
hosts/bastion.nix Normal file
View File

@ -0,0 +1,17 @@
{
hlConfig,
...
}:
rec {
hostname = "bastion";
managed = false;
ip = "192.168.10.189";
traefikRoutes = [
{
name = "${hostname}-vpn";
rule = "Host(`vpn.${hlConfig.domain}`)";
target = "http://${ip}:80";
}
];
}

View File

@ -5,7 +5,7 @@
rec {
hostname = "homeassistant";
managed = false;
ip = "192.168.10.98";
ip = "192.168.10.192";
traefikRoutes = [
{
@ -14,5 +14,4 @@ rec {
target = "http://${ip}:8123";
}
];
}

View File

@ -13,7 +13,10 @@
];
config = {
sonarr.domain = "service1.${hlConfig.domain}";
traefik.wildcardDomains = [ hlConfig.domain ];
traefik.wildcardDomains = [
hlConfig.domain
"pds.${hlConfig.domain}"
];
};
stateVersion = "24.05";
}

19
hosts/pds.nix Normal file
View File

@ -0,0 +1,19 @@
{
hlConfig,
...
}:
rec {
hostname = "pds";
managed = false;
ip = "192.168.10.174";
traefikRoutes = [
{
name = "${hostname}";
rule = "Host(`${hlConfig.domain}`) || HostRegexp(`.+${
builtins.replaceStrings [ "." ] [ "\\." ] hlConfig.domain
}`)";
target = "http://${ip}:3000";
}
];
}

17
hosts/wings1.nix Normal file
View File

@ -0,0 +1,17 @@
{
hlConfig,
...
}:
rec {
hostname = "wings1";
managed = false;
ip = "192.168.10.190";
traefikRoutes = [
{
name = "${hostname}";
rule = "Host(`wings1.${hlConfig.shortDomain}`)";
target = "http://${ip}:443";
}
];
}