mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
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:
parent
3a5d67a16b
commit
acee1d77aa
@ -39,6 +39,8 @@ set_default() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Set default variables if needed.
|
# Set default variables if needed.
|
||||||
|
RPCCRTPATH=$(set_default "$RPCCRTPATH" "/rpc/rpc.cert")
|
||||||
|
RPCHOST=$(set_default "$RPCHOST" "blockchain")
|
||||||
RPCUSER=$(set_default "$RPCUSER" "devuser")
|
RPCUSER=$(set_default "$RPCUSER" "devuser")
|
||||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||||
DEBUG=$(set_default "$DEBUG" "debug")
|
DEBUG=$(set_default "$DEBUG" "debug")
|
||||||
@ -60,8 +62,8 @@ exec lnd \
|
|||||||
"--$CHAIN.active" \
|
"--$CHAIN.active" \
|
||||||
"--$CHAIN.$NETWORK" \
|
"--$CHAIN.$NETWORK" \
|
||||||
"--$CHAIN.node"="$BACKEND" \
|
"--$CHAIN.node"="$BACKEND" \
|
||||||
"--$BACKEND.rpccert"="/rpc/rpc.cert" \
|
"--$BACKEND.rpccert"="$RPCCRTPATH" \
|
||||||
"--$BACKEND.rpchost"="blockchain" \
|
"--$BACKEND.rpchost"="$RPCHOST" \
|
||||||
"--$BACKEND.rpcuser"="$RPCUSER" \
|
"--$BACKEND.rpcuser"="$RPCUSER" \
|
||||||
"--$BACKEND.rpcpass"="$RPCPASS" \
|
"--$BACKEND.rpcpass"="$RPCPASS" \
|
||||||
"--rpclisten=$HOSTNAME:10009" \
|
"--rpclisten=$HOSTNAME:10009" \
|
||||||
|
@ -127,6 +127,12 @@ unlock or create.
|
|||||||
* Make sure payment stream returns all the events by [subscribing it before
|
* Make sure payment stream returns all the events by [subscribing it before
|
||||||
sending](https://github.com/lightningnetwork/lnd/pull/7722).
|
sending](https://github.com/lightningnetwork/lnd/pull/7722).
|
||||||
|
|
||||||
|
### Tooling and documentation
|
||||||
|
|
||||||
|
* Add support for [custom `RPCHOST` and
|
||||||
|
`RPCCRTPATH`](https://github.com/lightningnetwork/lnd/pull/7429) to the
|
||||||
|
`lnd` Docker image main script (`/start-lnd.sh`).
|
||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
* Carla Kirk-Cohen
|
* Carla Kirk-Cohen
|
||||||
@ -138,6 +144,7 @@ unlock or create.
|
|||||||
* Guillermo Caracuel
|
* Guillermo Caracuel
|
||||||
* hieblmi
|
* hieblmi
|
||||||
* Jordi Montes
|
* Jordi Montes
|
||||||
|
* Lele Calo
|
||||||
* Matt Morehouse
|
* Matt Morehouse
|
||||||
* Michael Street
|
* Michael Street
|
||||||
* Oliver Gugger
|
* Oliver Gugger
|
||||||
|
Loading…
Reference in New Issue
Block a user