Configuration
ℹ
Time: 5 minutes
The folder that LND wants to use does not exist yet. So create it first. Note that this configuration directory is different from the directory you just [installed] LND into (/lightning/installation), which was /home/ubuntu/lnd
.
mkdir ~/.lnd
You create the configuration file with:
nano ~/.lnd/lnd.conf
Then paste the settings into it.
[Application Options]tlsautorefresh=truerestlisten=0.0.0.0:8080rpclisten=0.0.0.0:10009listen=127.0.0.1:9735maxpendingchannels=5rpcmiddleware.enable=truecolor=YOURSETTING_Aalias=YOURSETTING_B[Tor]tor.active=truetor.v3=truetor.streamisolation=true[Bitcoin]bitcoin.active=truebitcoin.mainnet=truebitcoin.node=bitcoind[bitcoind]bitcoind.dir=~/.bitcoinbitcoind.rpcuser=FROM_BITCOIND_Abitcoind.rpcpass=FROM_BITCOIND_Bbitcoind.zmqpubrawblock=tcp://127.0.0.1:28332bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
In the text above, there are four things you need to take care of yourself.
- color, change YOURSETTING_A to a color of your choice. It is a hexadecimal value. For example
color=#123ABC
for the color blue. - alias, change YOURSETTING_B to a name of your choice. You will then get
alias=nickname
. - bitcoind.rpcuser, change FROM_BITCOIND_A to the correct user.
- bitcoind.rpcpass, change FROM_BITCOIND_B password to the correct password. You have been assigned this password.
Save the file with Ctrl + X
and Y
.