lnd: add option 'rpcPort'

10009 is lnd's default port.
Needed for the following commit.
This commit is contained in:
Erik Arvstedt 2019-11-27 14:04:43 +01:00
parent 120e3e8cfe
commit 1868bef462
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -12,6 +12,8 @@ let
tlscertpath=/secrets/lnd_cert tlscertpath=/secrets/lnd_cert
tlskeypath=/secrets/lnd_key tlskeypath=/secrets/lnd_key
rpclisten=localhost:${toString cfg.rpcPort}
bitcoin.active=1 bitcoin.active=1
bitcoin.node=bitcoind bitcoin.node=bitcoind
@ -41,6 +43,11 @@ in {
default = "/var/lib/lnd"; default = "/var/lib/lnd";
description = "The data directory for LND."; description = "The data directory for LND.";
}; };
rpcPort = mkOption {
type = types.ints.u16;
default = 10009;
description = "Port on which to listen for gRPC connections.";
};
extraConfig = mkOption { extraConfig = mkOption {
type = types.lines; type = types.lines;
default = ""; default = "";