21 lines
448 B
Nix
21 lines
448 B
Nix
{ meta, ... }:
|
|
let
|
|
# Beware, jool will not translate. Prefer ipv6 proxy target
|
|
machines = builtins.mapAttrs (
|
|
host: { site, ... }: "v6.${host}.${site}.infra.lab.dgnum.eu:443"
|
|
) meta.nodes;
|
|
in
|
|
{
|
|
dgn-web.enable = true;
|
|
services.nginx = {
|
|
sni-proxy = {
|
|
preStreamConfig = ''
|
|
resolver 127.0.0.53;
|
|
'';
|
|
enable = true;
|
|
redirects = {
|
|
"kfet.lab.dgnum.eu" = machines.labcore01;
|
|
};
|
|
};
|
|
};
|
|
}
|