lab-infra/machines/router02/nginx-sni.nix
sinavir 930c1bd90a
All checks were successful
lint / check (push) Successful in 24s
build configuration / build_krz01 (push) Successful in 2m6s
feat(sni-proxy): init
2024-12-22 02:49:09 +01:00

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;
};
};
};
}