From fe0918bc90453678736a5d09bde81e1121004102 Mon Sep 17 00:00:00 2001 From: Lele Calo Date: Mon, 20 Feb 2023 15:43:42 +0000 Subject: [PATCH 1/2] docker lnd: add support for custom params RPCHOST and RPCCRTPATH In this commit we add support for two more custom parameters in the main entrypoint for the `lnd` Docker image script (`start-lnd.sh`) The two parameters are: * RPCHOST to set a custom endpoint for the RPC server * RPCCRTPATH to set a custom location for the certificate used when communicating with the RPC server --- docker/lnd/start-lnd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/lnd/start-lnd.sh b/docker/lnd/start-lnd.sh index 76d4ba203c..6470f8b4c8 100755 --- a/docker/lnd/start-lnd.sh +++ b/docker/lnd/start-lnd.sh @@ -39,6 +39,8 @@ set_default() { } # Set default variables if needed. +RPCCRTPATH=$(set_default "$RPCCRTPATH" "/rpc/rpc.cert") +RPCHOST=$(set_default "$RPCHOST" "blockchain") RPCUSER=$(set_default "$RPCUSER" "devuser") RPCPASS=$(set_default "$RPCPASS" "devpass") DEBUG=$(set_default "$DEBUG" "debug") @@ -60,8 +62,8 @@ exec lnd \ "--$CHAIN.active" \ "--$CHAIN.$NETWORK" \ "--$CHAIN.node"="$BACKEND" \ - "--$BACKEND.rpccert"="/rpc/rpc.cert" \ - "--$BACKEND.rpchost"="blockchain" \ + "--$BACKEND.rpccert"="$RPCCRTPATH" \ + "--$BACKEND.rpchost"="$RPCHOST" \ "--$BACKEND.rpcuser"="$RPCUSER" \ "--$BACKEND.rpcpass"="$RPCPASS" \ "--rpclisten=$HOSTNAME:10009" \ From f48e5d3c37a7a9c30881cfa937a5943e266f68c0 Mon Sep 17 00:00:00 2001 From: Lele Calo Date: Mon, 20 Feb 2023 16:08:07 +0000 Subject: [PATCH 2/2] docs: add PR link to release notes Add link to current release notes for this commit PR --- docs/release-notes/release-notes-0.16.0.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/release-notes/release-notes-0.16.0.md b/docs/release-notes/release-notes-0.16.0.md index 80ad5fa71c..ac106af246 100644 --- a/docs/release-notes/release-notes-0.16.0.md +++ b/docs/release-notes/release-notes-0.16.0.md @@ -455,6 +455,10 @@ in the lnwire package](https://github.com/lightningnetwork/lnd/pull/7303) issue where [it cannot fetch commits](https://github.com/lightningnetwork/lnd/pull/7374). +* Add support for [custom RPCHOST and + RPCCRTPATH](https://github.com/lightningnetwork/lnd/pull/7429) to the + `lnd` Docker image main script (`/start-lnd.sh`) + ### Integration test * The `lntest` has been