docker: 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
This commit is contained in:
Lele Calo
2023-02-20 15:43:42 +00:00
committed by Oliver Gugger
parent 3a5d67a16b
commit acee1d77aa
2 changed files with 11 additions and 2 deletions

View File

@@ -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" \