fix: improve naming scheme in docker regtest file

This commit is contained in:
fusion44 2023-03-12 08:18:37 +01:00
parent 8848a65ae0
commit ba1584ccba
No known key found for this signature in database
6 changed files with 22 additions and 22 deletions

View file

@ -91,12 +91,12 @@ lnd_rest_port=8081
# cln grpc connection data, cert files are in .lightning data folder
# xxd -p -c2000 client.pem
cln_grpc_cert="/root/data/clightning-1/regtest/client.pem"
cln_grpc_cert="/root/data/cln1/regtest/client.pem"
# xxd -p -c2000 client-key.pem
cln_grpc_key="/root/data/clightning-1/regtest/client-key.pem"
cln_grpc_key="/root/data/cln1/regtest/client-key.pem"
# xxd -p -c2000 ca.pem
cln_grpc_ca="/root/data/clightning-1/regtest/ca.pem"
cln_grpc_ip=clightning-1
cln_grpc_ca="/root/data/cln1/regtest/ca.pem"
cln_grpc_ip=cln1
cln_grpc_port=11109
# Tor url of this system. Ignored on platform Raspiblitz.

View file

@ -91,12 +91,12 @@ lnd_rest_port=8081
# cln grpc connection data, cert files are in .lightning data folder
# xxd -p -c2000 client.pem
cln_grpc_cert="/root/data/clightning-2/regtest/client.pem"
cln_grpc_cert="/root/data/cln2/regtest/client.pem"
# xxd -p -c2000 client-key.pem
cln_grpc_key="/root/data/clightning-2/regtest/client-key.pem"
cln_grpc_key="/root/data/cln2/regtest/client-key.pem"
# xxd -p -c2000 ca.pem
cln_grpc_ca="/root/data/clightning-2/regtest/ca.pem"
cln_grpc_ip=clightning-2
cln_grpc_ca="/root/data/cln2/regtest/ca.pem"
cln_grpc_ip=cln2
cln_grpc_port=11109
# Tor url of this system. Ignored on platform Raspiblitz.

View file

@ -81,11 +81,11 @@ bitcoind_pw=lnbits
# for each implementation.
ln_node=lnd_grpc
# LND macaroon in HEX format, or a path to the .macaroon file
lnd_macaroon="/root/data/lnd-1/data/chain/bitcoin/regtest/admin.macaroon"
lnd_macaroon="/root/data/lnd1/data/chain/bitcoin/regtest/admin.macaroon"
# LND certificate in HEX format, or a path to the tls.cert file
lnd_cert="/root/data/lnd-1/tls.cert"
lnd_cert="/root/data/lnd1/tls.cert"
lnd_grpc_ip=lnd-1
lnd_grpc_ip=lnd1
lnd_grpc_port=10009
lnd_rest_port=8081

View file

@ -81,11 +81,11 @@ bitcoind_pw=lnbits
# for each implementation.
ln_node=lnd_grpc
# LND macaroon in HEX format, or a path to the .macaroon file
lnd_macaroon="/root/data/lnd-2/data/chain/bitcoin/regtest/admin.macaroon"
lnd_macaroon="/root/data/lnd2/data/chain/bitcoin/regtest/admin.macaroon"
# LND certificate in HEX format, or a path to the tls.cert file
lnd_cert="/root/data/lnd-2/tls.cert"
lnd_cert="/root/data/lnd2/tls.cert"
lnd_grpc_ip=lnd-2
lnd_grpc_ip=lnd2
lnd_grpc_port=10009
lnd_rest_port=8081

View file

@ -81,11 +81,11 @@ bitcoind_pw=lnbits
# for each implementation.
ln_node=lnd_grpc
# LND macaroon in HEX format, or a path to the .macaroon file
lnd_macaroon="/root/data/lnd-3/data/chain/bitcoin/regtest/admin.macaroon"
lnd_macaroon="/root/data/lnd3/data/chain/bitcoin/regtest/admin.macaroon"
# LND certificate in HEX format, or a path to the tls.cert file
lnd_cert="/root/data/lnd-3/tls.cert"
lnd_cert="/root/data/lnd3/tls.cert"
lnd_grpc_ip=lnd-2
lnd_grpc_ip=lnd3
lnd_grpc_port=10009
lnd_rest_port=8081

View file

@ -1,15 +1,15 @@
#!/bin/sh
if [ "$LN_BACKEND" = "cln-1" ]; then
if [ "$LN_BACKEND" = "cln1" ]; then
cp /code/.env.cln1 /code/.env
elif [ "$LN_BACKEND" = "cln-2" ]; then
elif [ "$LN_BACKEND" = "cln2" ]; then
cp /code/.env.cln2 /code/.env
elif [ "$LN_BACKEND" = "lnd-1" ]; then
elif [ "$LN_BACKEND" = "lnd1" ]; then
cp /code/.env.lnd1 /code/.env
elif [ "$LN_BACKEND" = "lnd-2" ]; then
elif [ "$LN_BACKEND" = "lnd2" ]; then
cp /code/.env.lnd2 /code/.env
elif [ "$LN_BACKEND" = "lnd-3" ]; then
elif [ "$LN_BACKEND" = "lnd3" ]; then
cp /code/.env.lnd3 /code/.env
else
echo "Unknown LN_BACKEND: $LN_BACKEND"