Compare commits
No commits in common. "9ab097dd9a2d81d09e26d1636bac0b147cedfb7f" and "2b765e744aaa5cd8a071c60b1bd2651bb24c0f8d" have entirely different histories.
9ab097dd9a
...
2b765e744a
@ -18,7 +18,6 @@ bash 'build_btcpay' do
|
||||
cwd node['btcpay']['source_dir']
|
||||
code './build.sh'
|
||||
action :nothing
|
||||
notifies :restart, "systemd_unit[btcpayserver.service]", :delayed
|
||||
end
|
||||
|
||||
directory "/home/#{node['bitcoin']['username']}/.btcpayserver" do
|
||||
@ -37,8 +36,6 @@ end
|
||||
|
||||
credentials = Chef::EncryptedDataBagItem.load('credentials', 'btcpay')
|
||||
|
||||
lnd_admin_macaroon_path = "#{node['lnd']['lnd_dir']}/data/chain/bitcoin/mainnet/admin.macaroon" rescue nil
|
||||
|
||||
template node['btcpay']['config_path'] do
|
||||
source "btcpay-settings.config.erb"
|
||||
owner node['bitcoin']['username']
|
||||
@ -52,9 +49,7 @@ template node['btcpay']['config_path'] do
|
||||
postgres_port: node['btcpay']['postgres']['port'],
|
||||
postgres_database: node['btcpay']['postgres']['database'],
|
||||
postgres_user: node['btcpay']['postgres']['user'],
|
||||
postgres_password: credentials['postgres_password'],
|
||||
lnd_admin_macaroon_path: lnd_admin_macaroon_path
|
||||
notifies :restart, "systemd_unit[btcpayserver.service]", :delayed
|
||||
postgres_password: credentials['postgres_password']
|
||||
end
|
||||
|
||||
directory '/run/btcpayserver' do
|
||||
|
||||
@ -2,9 +2,7 @@ network=<%= @bitcoin_network %>
|
||||
port=<%= @btcpay_port %>
|
||||
bind=127.0.0.1
|
||||
chains=btc
|
||||
BTC.explorer.url=<%= @nbxplorer_url %>
|
||||
postgres=User ID=<%= @postgres_user %>;Password=<%= @postgres_password %>;Host=<%= @postgres_host %>;Port=<%= @postgres_port %>;Database=<%= @postgres_database %>;
|
||||
debuglog=<%= @btcpay_log_path %>
|
||||
BTC.explorer.url=<%= @nbxplorer_url %>
|
||||
<% if @lnd_admin_macaroon_path %>
|
||||
BTC.lightning=type=lnd-rest;server=https://127.0.0.1:8080/;macaroonfilepath=<%= @lnd_admin_macaroon_path %>;allowinsecure=true
|
||||
<% end %>
|
||||
<%# TODO BTC.lightning=type=clightning;server=/mnt/data/lightningd/lightning-rpc %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user