lnd: add certificate options extraIPs and extraDomains

This is useful for non-local access to the lnd REST server.
This commit is contained in:
Erik Arvstedt
2022-07-07 16:09:26 +02:00
parent 60a27d58a6
commit edfbe700e7
4 changed files with 54 additions and 7 deletions
+6
View File
@@ -109,4 +109,10 @@ let self = {
optionalAttr = cond: name: if cond then name else null;
mkCertExtraAltNames = cert:
builtins.concatStringsSep "," (
(map (domain: "DNS:${domain}") cert.extraDomains) ++
(map (ip: "IP:${ip}") cert.extraIPs)
);
}; in self