ingress-proxy: refactor vhosts

This commit is contained in:
41666 2024-01-06 13:26:45 -05:00
parent 4dc7cf15f8
commit 417d02f36f

View file

@ -24,7 +24,7 @@ in {
}; };
virtualHosts = let virtualHosts = let
static = { src ? null, url ? null, ref ? null, aliases ? [] }: { static = { src ? null, url ? null, rev ? null, aliases ? [] }: {
http2 = true; http2 = true;
http3 = true; http3 = true;
forceSSL = true; forceSSL = true;
@ -33,7 +33,7 @@ in {
serverAliases = aliases; serverAliases = aliases;
root = pkgs.stdenvNoCC.mkDerivation { root = pkgs.stdenvNoCC.mkDerivation {
src = if src then src else pkgs.lib.fetchGit { inherit url ref; }; src = if src then src else pkgs.lib.fetchGit { inherit url rev; };
installPhase = "cp -r $src $out"; installPhase = "cp -r $src $out";
}; };
}; };