Add new configs for akkounts
This commit is contained in:
@@ -2,17 +2,23 @@ node.default['akkounts']['repo'] = 'https://gitea.kosmos.org/kosmos/akkounts.git
|
|||||||
node.default['akkounts']['revision'] = 'master'
|
node.default['akkounts']['revision'] = 'master'
|
||||||
node.default['akkounts']['port'] = 3000
|
node.default['akkounts']['port'] = 3000
|
||||||
node.default['akkounts']['domain'] = 'accounts.kosmos.org'
|
node.default['akkounts']['domain'] = 'accounts.kosmos.org'
|
||||||
|
node.default['akkounts']['primary_domain'] = 'kosmos.org'
|
||||||
node.default['akkounts_api']['domain'] = 'api.kosmos.org'
|
node.default['akkounts_api']['domain'] = 'api.kosmos.org'
|
||||||
|
|
||||||
|
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.default['akkounts']['discourse']['public_url'] = 'https://community.kosmos.org'
|
||||||
|
node.default['akkounts']['ejabberd']['admin_url'] = 'https://xmpp.kosmos.org:5443/admin'
|
||||||
|
node.default['akkounts']['gitea']['public_url'] = 'https://gitea.kosmos.org'
|
||||||
|
node.default['akkounts']['mastodon']['public_url'] = 'https://kosmos.social'
|
||||||
|
node.default['akkounts']['mediawiki']['public_url'] = 'https://wiki.kosmos.org'
|
||||||
|
|
||||||
node.default['akkounts']['lndhub']['api_url'] = nil
|
node.default['akkounts']['lndhub']['api_url'] = nil
|
||||||
node.default['akkounts']['lndhub']['public_url'] = nil
|
node.default['akkounts']['lndhub']['public_url'] = nil
|
||||||
node.default['akkounts']['lndhub']['public_key'] = nil
|
node.default['akkounts']['lndhub']['public_key'] = nil
|
||||||
node.default['akkounts']['lndhub']['postgres_db'] = 'lndhub'
|
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"
|
node.override["redisio"]["version"] = "6.2.6"
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ webhooks_allowed_ips = [lndhub_host].compact.uniq.join(',')
|
|||||||
|
|
||||||
env = {
|
env = {
|
||||||
akkounts_domain: node['akkounts']['domain'],
|
akkounts_domain: node['akkounts']['domain'],
|
||||||
|
primary_domain: node['akkounts']['primary_domain'],
|
||||||
|
discourse_public_url: node['akkounts']['discourse']['public_url'],
|
||||||
|
gitea_public_url: node['akkounts']['gitea']['public_url'],
|
||||||
|
mastodon_public_url: node['akkounts']['mastodon']['public_url'],
|
||||||
|
mediawiki_public_url: node['akkounts']['mediawiki']['public_url'],
|
||||||
rails_serve_static_files: true
|
rails_serve_static_files: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +102,7 @@ end
|
|||||||
if ejabberd_private_ip_addresses.size > 0
|
if ejabberd_private_ip_addresses.size > 0
|
||||||
env[:ejabberd_api_url] = "http://xmpp.kosmos.local/api"
|
env[:ejabberd_api_url] = "http://xmpp.kosmos.local/api"
|
||||||
end
|
end
|
||||||
|
env[:ejabberd_admin_url] = node['akkounts']['ejabberd']['admin_url']
|
||||||
|
|
||||||
systemd_unit "akkounts.service" do
|
systemd_unit "akkounts.service" do
|
||||||
content({
|
content({
|
||||||
|
|||||||
Reference in New Issue
Block a user