Configuration for LndHub webhooks #461

Merged
greg merged 3 commits from feature/lndhub_webhooks into master 2023-01-17 13:45:01 +00:00
2 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,13 @@ 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"]
node['lndhub-go']['webhook_url'] = "http://#{akkounts_host}:3000/webhooks/lndhub"
rescue
# No akkounts host found
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 +65,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

View File

@ -183,6 +183,7 @@ api_permissions:
what: what:
- "add_rosteritem" - "add_rosteritem"
- "delete_rosteritem" - "delete_rosteritem"
- "send_message"
language: "en" language: "en"