From 2dd4d572a61bc7665f0ac67ec75aa6ae7d933585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 4 Apr 2023 09:32:40 +0200 Subject: [PATCH] Configure akkounts domain --- site-cookbooks/kosmos-akkounts/recipes/default.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index cc5eada..c6ae288 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -37,11 +37,13 @@ postgres_readonly_host = search(:node, "role:postgresql_replica").first["knife_z btcpay_host = search(:node, "role:btcpay").first["knife_zero"]["host"] rescue nil lndhub_host = search(:node, "role:lndhub").first["knife_zero"]["host"] rescue nil webhooks_allowed_ips = [lndhub_host].compact.uniq.join(',') -env = {} -env[:rails_serve_static_files] = "true" +env = { + akkounts_domain: node['akkounts']['domain'], + rails_serve_static_files: true +} -smtp_server, smtp_port = smtp_credentials[:relayhost].split(":") +smtp_server, smtp_port = smtp_credentials[:relayhost].split(":") env[:smtp] = { server: smtp_server, port: smtp_port,