Add logdir and tor.privatekeypath to lnd.conf

This will put the logs dir and tor priv keys directly in the
datadir of lnd. Before this commit, they were stored in a .lnd
dir inside the datadir.
This commit is contained in:
Ștefan D. Mihăilă 2019-08-23 01:38:27 +02:00
parent 5a2517b926
commit 700fdf6feb
No known key found for this signature in database
GPG Key ID: 6220AD7846220A52

View File

@ -7,6 +7,7 @@ let
cfg = config.services.lnd; cfg = config.services.lnd;
configFile = pkgs.writeText "lnd.conf" '' configFile = pkgs.writeText "lnd.conf" ''
datadir=${cfg.dataDir} datadir=${cfg.dataDir}
logdir=${cfg.dataDir}/logs
bitcoin.mainnet=1 bitcoin.mainnet=1
tlscertpath=/secrets/lnd_cert tlscertpath=/secrets/lnd_cert
tlskeypath=/secrets/lnd_key tlskeypath=/secrets/lnd_key
@ -17,6 +18,7 @@ let
tor.active=true tor.active=true
tor.v3=true tor.v3=true
tor.streamisolation=true tor.streamisolation=true
tor.privatekeypath=${cfg.dataDir}/v3_onion_private_key
bitcoind.rpcuser=${config.services.bitcoind.rpcuser} bitcoind.rpcuser=${config.services.bitcoind.rpcuser}
bitcoind.zmqpubrawblock=${config.services.bitcoind.zmqpubrawblock} bitcoind.zmqpubrawblock=${config.services.bitcoind.zmqpubrawblock}