cluster/services/websites: add top-level dns record
This commit is contained in:
parent
eae6934b92
commit
93ceb5c0ea
1 changed files with 12 additions and 3 deletions
|
@ -51,7 +51,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dns.records = lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
|
dns.records = lib.mkMerge [
|
||||||
consulService = "static-lb";
|
(lib.genAttrs [ "www" "draw" "stop-using-nix-env" "whoami" ] (lib.const {
|
||||||
});
|
consulService = "static-lb";
|
||||||
|
}))
|
||||||
|
{
|
||||||
|
CNAME = {
|
||||||
|
name = "@";
|
||||||
|
type = "CNAME";
|
||||||
|
target = [ "www.${domain}." ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue