3 Commits

Author SHA1 Message Date
Râu Cao
58b70e5f70 Configure Sentry DSN for lndhub-go 2023-03-25 07:12:47 +07:00
Râu Cao
e13b76658e Add Sentry client recipe and role
Configures a local domain for Sentry in the hostsfile.
2023-03-24 21:21:02 +07:00
Râu Cao
09e6b903ea Basic Sentry setup
Not running the install script automatically at this point yet.
2023-03-24 20:41:27 +07:00
2 changed files with 5 additions and 23 deletions

View File

@@ -10,9 +10,4 @@ node.default['akkounts']['lndhub']['public_url'] = nil
node.default['akkounts']['lndhub']['public_key'] = nil
node.default['akkounts']['lndhub']['postgres_db'] = 'lndhub'
node.default['akkounts']['smtp']['from_address'] = 'Kosmos Accounts <accounts@kosmos.org>'
node.default['akkounts']['smtp']['domain'] = 'kosmos.org'
node.default['akkounts']['smtp']['auth_method'] = 'plain'
node.default['akkounts']['smtp']['enable_starttls'] = 'auto'
node.override["redisio"]["version"] = "6.2.6"

View File

@@ -4,12 +4,11 @@
#
require 'ipaddr'
app_name = "akkounts"
deploy_user = "deploy"
deploy_group = "deploy"
deploy_path = "/opt/#{app_name}"
credentials = Chef::EncryptedDataBagItem.load('credentials', app_name)
smtp_credentials = Chef::EncryptedDataBagItem.load('credentials', 'smtp')
app_name = "akkounts"
deploy_user = "deploy"
deploy_group = "deploy"
deploy_path = "/opt/#{app_name}"
credentials = Chef::EncryptedDataBagItem.load('credentials', app_name)
group deploy_group
@@ -41,18 +40,6 @@ env = {}
env[:rails_serve_static_files] = "true"
smtp_server, smtp_port = smtp_credentials[:relayhost].split(":")
env[:smtp] = {
server: smtp_server,
port: smtp_port,
login: smtp_credentials[:user_name],
password: smtp_credentials[:password],
from_address: node['akkounts']['smtp']['from_address'],
domain: node['akkounts']['smtp']['domain'],
auth_method: node['akkounts']['smtp']['auth_method'],
enable_starttls: node['akkounts']['smtp']['enable_starttls']
}
if webhooks_allowed_ips.length > 0
env[:webhooks_allowed_ips] = webhooks_allowed_ips
end