config/hosts/pds.nix

22 lines
374 B
Nix
Raw Normal View History

2025-02-05 20:43:42 +01:00
{
hlConfig,
...
}:
rec {
hostname = "pds";
managed = false;
ip = "192.168.10.174";
2025-02-07 19:32:06 +01:00
traefikRoutes =
let
domain = "pds.${hlConfig.domain}";
in
[
{
name = "${hostname}";
rule = "Host(`${domain}`) || HostRegexp(`.+${builtins.replaceStrings [ "." ] [ "\\." ] domain}`)";
target = "http://${ip}:3000";
}
];
2025-02-05 20:43:42 +01:00
}