added own bitcoin.conf for c-lightning

This commit is contained in:
jash
2018-10-18 17:12:30 +02:00
committed by kexkey
parent f9d162b0c8
commit 27c26d9cb9
4 changed files with 11 additions and 1 deletions

1
dist/setup.sh vendored
View File

@@ -213,6 +213,7 @@ install_docker() {
next
fi
copy_file $sourceDataPath/lightning/c-lightning/config $LIGHTNING_DATAPATH/config
copy_file $sourceDataPath/lightning/c-lightning/bitcoin.conf $LIGHTNING_DATAPATH/bitcoin.conf
fi
fi

View File

@@ -17,7 +17,7 @@ const featureCondition = function(props) {
const templates = {
'lnd': [ path.join('lnd','lnd.conf') ],
'c-lightning': [ path.join('c-lightning','config') ]
'c-lightning': [ path.join('c-lightning','config'), path.join('c-lightning','bitcoin.conf') ]
};
module.exports = {

View File

@@ -69,6 +69,7 @@ services:
- "9735:9735"
volumes:
- "<%= lightning_datapath%>:/.lightning"
- "<%= lightning_datapath%>/bitcoin.conf:/.bitcoin/bitcoin.conf"
# deploy:
# placement:
# constraints: [node.hostname==dev]

View File

@@ -0,0 +1,8 @@
<% if (net === 'testnet') { %>
# testnet
testnet=1
<% } %>
rpcconnect=<%= (bitcoin_mode === 'internal')?'bitcoin':bitcoin_node_ip %>
rpcuser=<%= bitcoin_rpcuser %>
rpcpassword=<%= bitcoin_rpcpassword %>