Refactor onion service configuration for LND
This commit is contained in:
@@ -54,8 +54,8 @@ in {
|
|||||||
})
|
})
|
||||||
(mkIf (cfg.lndconnect.enable && cfg.lndconnect.onion) {
|
(mkIf (cfg.lndconnect.enable && cfg.lndconnect.onion) {
|
||||||
services.tor.relay.onionServices.lnd = nbLib.mkOnionService {
|
services.tor.relay.onionServices.lnd = nbLib.mkOnionService {
|
||||||
map = [{ port = cfg.restPort; target = { addr = nbLib.address cfg.restAddress; port = cfg.restPort; }; }];
|
port = cfg.restPort;
|
||||||
version = 3;
|
target = { addr = nbLib.address cfg.restAddress; port = cfg.restPort; };
|
||||||
};
|
};
|
||||||
nix-bitcoin.onionAddresses.access.${operatorName} = [ "lnd" ];
|
nix-bitcoin.onionAddresses.access.${operatorName} = [ "lnd" ];
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user