From b4019b224bbb1c1a0a9bbe3d73368c8909bba32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 18 Oct 2024 12:36:41 +0200 Subject: [PATCH] Upgrade lndhub.go to 1.0.2, add service fee config Co-authored-by: Michael Bumann --- site-cookbooks/kosmos-bitcoin/attributes/default.rb | 8 +++++--- site-cookbooks/kosmos-bitcoin/recipes/lndhub-go.rb | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/site-cookbooks/kosmos-bitcoin/attributes/default.rb b/site-cookbooks/kosmos-bitcoin/attributes/default.rb index e89b401..cba71ab 100644 --- a/site-cookbooks/kosmos-bitcoin/attributes/default.rb +++ b/site-cookbooks/kosmos-bitcoin/attributes/default.rb @@ -65,7 +65,7 @@ node.default['rtl']['host'] = '10.1.1.163' node.default['rtl']['port'] = '3000' node.default['lndhub-go']['repo'] = 'https://github.com/getAlby/lndhub.go.git' -node.default['lndhub-go']['revision'] = '0.14.0' +node.default['lndhub-go']['revision'] = '1.0.2' node.default['lndhub-go']['source_dir'] = '/opt/lndhub-go' node.default['lndhub-go']['port'] = 3026 node.default['lndhub-go']['domain'] = 'lndhub.kosmos.org' @@ -73,8 +73,10 @@ node.default['lndhub-go']['postgres']['database'] = 'lndhub' node.default['lndhub-go']['postgres']['user'] = 'lndhub' node.default['lndhub-go']['postgres']['port'] = 5432 node.default['lndhub-go']['default_rate_limit'] = 20 -node.default['lndhub-go']['strict_rate_limit'] = 1 -node.default['lndhub-go']['burst_rate_limit'] = 10 +node.default['lndhub-go']['strict_rate_limit'] = 1 +node.default['lndhub-go']['burst_rate_limit'] = 10 +node.default['lndhub-go']['service_fee'] = 1 +node.default['lndhub-go']['no_service_fee_up_to_amount'] = 1000 node.default['lndhub-go']['branding'] = { 'title' => 'LndHub - Kosmos Lightning', 'desc' => 'Kosmos accounts for the Lightning Network', diff --git a/site-cookbooks/kosmos-bitcoin/recipes/lndhub-go.rb b/site-cookbooks/kosmos-bitcoin/recipes/lndhub-go.rb index 9f26347..a86786b 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/lndhub-go.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/lndhub-go.rb @@ -66,6 +66,8 @@ template "#{source_dir}/.env" do default_rate_limit: node['lndhub-go']['default_rate_limit'], strict_rate_limit: node['lndhub-go']['strict_rate_limit'], burst_rate_limit: node['lndhub-go']['burst_rate_limit'], + service_fee: 1, + no_service_fee_up_to_amount: 1000, branding: node['lndhub-go']['branding'], webhook_url: node['lndhub-go']['webhook_url'], sentry_dsn: credentials['sentry_dsn'] -- 2.25.1