Compare commits
2 Commits
b5020efdd5
...
98543f3e7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
98543f3e7d
|
|||
|
7ab83d3d82
|
@@ -82,6 +82,8 @@
|
|||||||
},
|
},
|
||||||
"liquor-cabinet": {
|
"liquor-cabinet": {
|
||||||
"ufw_source_allowed": "10.1.1.0/24",
|
"ufw_source_allowed": "10.1.1.0/24",
|
||||||
|
"redis_port": 6379,
|
||||||
|
"redis_db": 1,
|
||||||
"s3_endpoint": "http://localhost:3900",
|
"s3_endpoint": "http://localhost:3900",
|
||||||
"s3_region": "garage",
|
"s3_region": "garage",
|
||||||
"s3_bucket": "rs-kosmos",
|
"s3_bucket": "rs-kosmos",
|
||||||
|
|||||||
@@ -69,17 +69,33 @@ if webhooks_allowed_ips.length > 0
|
|||||||
env[:webhooks_allowed_ips] = webhooks_allowed_ips
|
env[:webhooks_allowed_ips] = webhooks_allowed_ips
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# BTCPay Server
|
||||||
|
#
|
||||||
|
|
||||||
if btcpay_host
|
if btcpay_host
|
||||||
env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1"
|
env[:btcpay_api_url] = "http://#{btcpay_host}:23001/api/v1"
|
||||||
env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id']
|
env[:btcpay_store_id] = node['akkounts']['btcpay']['store_id']
|
||||||
env[:btcpay_auth_token] = credentials["btcpay_auth_token"]
|
env[:btcpay_auth_token] = credentials["btcpay_auth_token"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Discourse
|
||||||
|
#
|
||||||
|
|
||||||
env[:discourse_public_url] = "https://#{node['discourse']['domain']}"
|
env[:discourse_public_url] = "https://#{node['discourse']['domain']}"
|
||||||
env[:discourse_connect_secret] = credentials['discourse_connect_secret']
|
env[:discourse_connect_secret] = credentials['discourse_connect_secret']
|
||||||
|
|
||||||
|
#
|
||||||
|
# Drone CI
|
||||||
|
#
|
||||||
|
|
||||||
env[:droneci_public_url] = node["droneci"]["public_url"]
|
env[:droneci_public_url] = node["droneci"]["public_url"]
|
||||||
|
|
||||||
|
#
|
||||||
|
# ejabberd
|
||||||
|
#
|
||||||
|
|
||||||
ejabberd_private_ip_addresses = []
|
ejabberd_private_ip_addresses = []
|
||||||
search(:node, "role:ejabberd").each do |node|
|
search(:node, "role:ejabberd").each do |node|
|
||||||
ejabberd_private_ip_addresses << node["knife_zero"]["host"]
|
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']
|
env[:ejabberd_admin_url] = node['akkounts']['ejabberd']['admin_url']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Gitea
|
||||||
|
#
|
||||||
|
|
||||||
env[:gitea_public_url] = "https://#{node['gitea']['domain']}"
|
env[:gitea_public_url] = "https://#{node['gitea']['domain']}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# lndhub.go
|
||||||
|
#
|
||||||
|
|
||||||
if lndhub_host
|
if lndhub_host
|
||||||
node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026"
|
node.override["akkounts"]["lndhub"]["api_url"] = "http://#{lndhub_host}:3026"
|
||||||
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
|
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
|
||||||
@@ -119,10 +143,35 @@ if lndhub_host
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mastodon
|
||||||
|
#
|
||||||
|
|
||||||
env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}"
|
env[:mastodon_public_url] = "https://#{node['kosmos-mastodon']['domain']}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# MediaWiki
|
||||||
|
#
|
||||||
|
|
||||||
env[:mediawiki_public_url] = node['mediawiki']['url']
|
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
|
systemd_unit "akkounts.service" do
|
||||||
content({
|
content({
|
||||||
Unit: {
|
Unit: {
|
||||||
|
|||||||
Reference in New Issue
Block a user