diff --git a/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb b/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb index c919ef7..1921279 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb @@ -11,7 +11,6 @@ app_dir = "/opt/#{app_name}" lnd_dir = node['lnd']['lnd_dir'] bitcoin_user = node['bitcoin']['username'] bitcoin_group = node['bitcoin']['usergroup'] -bitcoin_credentials = Chef::EncryptedDataBagItem.load('credentials', 'bitcoin') application app_dir do owner bitcoin_user @@ -46,10 +45,7 @@ application app_dir do owner bitcoin_user group bitcoin_group mode '0600' - variables bitcoin_rpc_host: node['bitcoin']['conf']['rpcbind'], - bitcoin_rpc_user: node['bitcoin']['conf']['rpcuser'], - bitcoin_rpc_pass: bitcoin_credentials["rpcpassword"], - lnd_rpc_host: '127.0.0.1:10009' + variables lnd_rpc_host: '127.0.0.1:10009' notifies :restart, "systemd_unit[lndhub.service]", :delayed end diff --git a/site-cookbooks/kosmos-bitcoin/templates/lndhub.config.js.erb b/site-cookbooks/kosmos-bitcoin/templates/lndhub.config.js.erb index 86933bf..99b7858 100644 --- a/site-cookbooks/kosmos-bitcoin/templates/lndhub.config.js.erb +++ b/site-cookbooks/kosmos-bitcoin/templates/lndhub.config.js.erb @@ -4,9 +4,6 @@ let config = { rateLimit: 200, forwardReserveFee: 0.01, // default 0.01 intraHubFee: 0.003, // default 0.003 - bitcoind: { - rpc: 'http://<%= @bitcoin_rpc_user %>:<%= @bitcoin_rpc_pass %>@<%= @bitcoin_rpc_host %>/wallet/wallet.dat', - }, redis: { port: 6379, host: '127.0.0.1',