Configure boltzd access for RTL
This commit is contained in:
parent
87334de83a
commit
90bd2dadb2
@ -43,7 +43,13 @@ rtl_config = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
multiPassHashed: credentials["multiPassHashed"]
|
multiPassHashed: credentials["multiPassHashed"]
|
||||||
}.to_json
|
}
|
||||||
|
|
||||||
|
if node['boltz']
|
||||||
|
# TODO adapt for multi-node usage
|
||||||
|
rtl_config[:nodes][0][:Authentication][:boltzMacaroonPath] = "#{node['boltz']['boltz_dir']}/macaroons"
|
||||||
|
rtl_config[:nodes][0][:Settings][:boltzServerUrl] = "https://#{node['boltz']['rest_host']}:#{node['boltz']['rest_port']}"
|
||||||
|
end
|
||||||
|
|
||||||
application rtl_dir do
|
application rtl_dir do
|
||||||
owner bitcoin_user
|
owner bitcoin_user
|
||||||
@ -65,7 +71,7 @@ application rtl_dir do
|
|||||||
owner bitcoin_user
|
owner bitcoin_user
|
||||||
group bitcoin_group
|
group bitcoin_group
|
||||||
mode '0640'
|
mode '0640'
|
||||||
content rtl_config
|
content rtl_config.to_json
|
||||||
notifies :restart, "systemd_unit[rtl.service]", :delayed
|
notifies :restart, "systemd_unit[rtl.service]", :delayed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user