lnd: add certificate options extraIPs and extraDomains
This is useful for non-local access to the lnd REST server.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user