|
|
@@ -19,6 +19,12 @@ postgres_user = node['lndhub-go']['postgres']['user']
|
|
|
|
postgres_db = node['lndhub-go']['postgres']['database']
|
|
|
|
postgres_db = node['lndhub-go']['postgres']['database']
|
|
|
|
postgres_port = node['lndhub-go']['postgres']['port']
|
|
|
|
postgres_port = node['lndhub-go']['postgres']['port']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
akkounts_host = search(:node, "role:akkounts").first["knife_zero"]["host"]
|
|
|
|
|
|
|
|
rescue
|
|
|
|
|
|
|
|
node['lndhub-go']['webhook_url'] = "http://#{akkounts_host}:3000/webhooks/lndhub"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
git source_dir do
|
|
|
|
git source_dir do
|
|
|
|
repository node['lndhub-go']['repo']
|
|
|
|
repository node['lndhub-go']['repo']
|
|
|
|
revision node['lndhub-go']['revision']
|
|
|
|
revision node['lndhub-go']['revision']
|
|
|
@@ -58,7 +64,8 @@ template "#{source_dir}/.env" do
|
|
|
|
default_rate_limit: node['lndhub-go']['default_rate_limit'],
|
|
|
|
default_rate_limit: node['lndhub-go']['default_rate_limit'],
|
|
|
|
strict_rate_limit: node['lndhub-go']['strict_rate_limit'],
|
|
|
|
strict_rate_limit: node['lndhub-go']['strict_rate_limit'],
|
|
|
|
burst_rate_limit: node['lndhub-go']['burst_rate_limit'],
|
|
|
|
burst_rate_limit: node['lndhub-go']['burst_rate_limit'],
|
|
|
|
branding: node['lndhub-go']['branding']
|
|
|
|
branding: node['lndhub-go']['branding'],
|
|
|
|
|
|
|
|
webhook_url: node['lndhub-go']['webhook_url']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
notifies :restart, 'service[lndhub-go]', :delayed
|
|
|
|
notifies :restart, 'service[lndhub-go]', :delayed
|
|
|
|
end
|
|
|
|
end
|
|
|
|