Compare commits
8 Commits
58b70e5f70
...
9f886cc286
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f886cc286 | ||
|
|
05d0a19b5f | ||
|
|
798ee3d1d8 | ||
| 0fbba8baa8 | |||
|
|
0c4466b040 | ||
|
|
34970fe3cf | ||
|
|
3873ebaac2 | ||
|
|
4f1fb347a8 |
@ -10,4 +10,9 @@ 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"
|
||||
|
||||
@ -4,11 +4,12 @@
|
||||
#
|
||||
require 'ipaddr'
|
||||
|
||||
app_name = "akkounts"
|
||||
deploy_user = "deploy"
|
||||
deploy_group = "deploy"
|
||||
deploy_path = "/opt/#{app_name}"
|
||||
credentials = Chef::EncryptedDataBagItem.load('credentials', app_name)
|
||||
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')
|
||||
|
||||
group deploy_group
|
||||
|
||||
@ -40,6 +41,18 @@ 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user