From 263eb88b724bc8012c5949af74ed7c951a13d480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 14 Mar 2024 23:05:05 +0100 Subject: [PATCH] Add new env var for akkounts --- environments/production.json | 1 + site-cookbooks/kosmos-akkounts/attributes/default.rb | 1 + site-cookbooks/kosmos-akkounts/recipes/default.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/environments/production.json b/environments/production.json index 311b57e..c99a461 100644 --- a/environments/production.json +++ b/environments/production.json @@ -3,6 +3,7 @@ "override_attributes": { "akkounts": { "btcpay": { + "public_url": "https://btcpay.kosmos.org", "store_id": "FNJVVsrVkKaduPDAkRVchdegjwzsNhpceAdonCaXAwBX" }, "ejabberd": { diff --git a/site-cookbooks/kosmos-akkounts/attributes/default.rb b/site-cookbooks/kosmos-akkounts/attributes/default.rb index 635cf40..49a3e93 100644 --- a/site-cookbooks/kosmos-akkounts/attributes/default.rb +++ b/site-cookbooks/kosmos-akkounts/attributes/default.rb @@ -11,6 +11,7 @@ node.default['akkounts']['smtp']['domain'] = 'kosmos.org' node.default['akkounts']['smtp']['auth_method'] = 'plain' node.default['akkounts']['smtp']['enable_starttls'] = 'auto' +node.default['akkounts']['btcpay']['public_url'] = nil node.default['akkounts']['btcpay']['store_id'] = nil node.default['akkounts']['ejabberd']['admin_url'] = nil diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index 9aa593d..2a8fb0b 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -75,6 +75,7 @@ end if btcpay_host env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1" + env[:btcpay_public_url] = node['akkounts']['btcpay']['public_url'] env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id'] env[:btcpay_auth_token] = credentials["btcpay_auth_token"] end