|
|
|
|
@@ -69,17 +69,33 @@ if webhooks_allowed_ips.length > 0
|
|
|
|
|
env[:webhooks_allowed_ips] = webhooks_allowed_ips
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# BTCPay Server
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if btcpay_host
|
|
|
|
|
env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1"
|
|
|
|
|
env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id']
|
|
|
|
|
env[:btcpay_auth_token] = credentials["btcpay_auth_token"]
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Discourse
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:discourse_public_url] = "https://#{node['discourse']['domain']}"
|
|
|
|
|
env[:discourse_connect_secret] = credentials['discourse_connect_secret']
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Drone CI
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:droneci_public_url] = node["droneci"]["public_url"]
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# ejabberd
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
ejabberd_private_ip_addresses = []
|
|
|
|
|
search(:node, "role:ejabberd").each do |node|
|
|
|
|
|
ejabberd_private_ip_addresses << node["knife_zero"]["host"]
|
|
|
|
|
@@ -101,8 +117,16 @@ if ejabberd_private_ip_addresses.size > 0
|
|
|
|
|
env[:ejabberd_admin_url] = node['akkounts']['ejabberd']['admin_url']
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Gitea
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:gitea_public_url] = "https://#{node['gitea']['domain']}"
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# lndhub.go
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
if lndhub_host
|
|
|
|
|
node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026"
|
|
|
|
|
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
|
|
|
|
|
@@ -119,10 +143,35 @@ if lndhub_host
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Mastodon
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}"
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# MediaWiki
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:mediawiki_public_url] = node['mediawiki']['url']
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# remoteStorage / Liquor Cabinet
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
env[:rs_storage_url] = "https://#{node['liquor-cabinet']['domain']}"
|
|
|
|
|
|
|
|
|
|
rs_redis_host = search(:node, "role:redis_server").first["knife_zero"]["host"] rescue nil
|
|
|
|
|
rs_redis_port = node['liquor-cabinet']['redis_port']
|
|
|
|
|
rs_redis_db = node['liquor-cabinet']['redis_db']
|
|
|
|
|
if rs_redis_host
|
|
|
|
|
env[:rs_redis_url] = "redis://#{rs_redis_host}:#{rs_redis_port}/#{rs_redis_db}"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Akkounts Deployment
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
systemd_unit "akkounts.service" do
|
|
|
|
|
content({
|
|
|
|
|
Unit: {
|
|
|
|
|
|