Add lndhub pubkey in prod, update node config

This commit is contained in:
Râu Cao 2023-03-03 21:48:38 +08:00
parent 6779f5a5dc
commit cf082833a7
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
4 changed files with 5 additions and 14 deletions

View File

@ -3,7 +3,8 @@
"override_attributes": { "override_attributes": {
"akkounts": { "akkounts": {
"lndhub": { "lndhub": {
"public_url": "https://lndhub.kosmos.org" "public_url": "https://lndhub.kosmos.org",
"public_key": "024cd3be18617f39cf645851e3ba63f51fc13f0bb09e3bb25e6fd4de556486d946"
} }
}, },
"garage": { "garage": {

View File

@ -27,7 +27,6 @@
"kosmos_postgresql::hostsfile", "kosmos_postgresql::hostsfile",
"kosmos-akkounts", "kosmos-akkounts",
"kosmos-akkounts::default", "kosmos-akkounts::default",
"kosmos-akkounts::nginx",
"apt::default", "apt::default",
"timezone_iii::default", "timezone_iii::default",
"timezone_iii::debian", "timezone_iii::debian",
@ -54,19 +53,8 @@
"nodejs::repo", "nodejs::repo",
"nodejs::npm", "nodejs::npm",
"nodejs::install", "nodejs::install",
"kosmos-nginx::default",
"nginx::default",
"nginx::package",
"nginx::ohai_plugin",
"nginx::repo",
"nginx::commons",
"nginx::commons_dir",
"nginx::commons_script",
"nginx::commons_conf",
"kosmos-nginx::firewall",
"git::default", "git::default",
"git::package", "git::package"
"kosmos-base::letsencrypt"
], ],
"platform": "ubuntu", "platform": "ubuntu",
"platform_version": "20.04", "platform_version": "20.04",

View File

@ -7,6 +7,7 @@ node.default['akkounts_api']['domain'] = 'api.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']['postgres_db'] = 'lndhub' node.default['akkounts']['lndhub']['postgres_db'] = 'lndhub'
node.override["redisio"]["version"] = "6.2.6" node.override["redisio"]["version"] = "6.2.6"

View File

@ -49,6 +49,7 @@ if lndhub_host
env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"] env[:lndhub_legacy_api_url] = node["akkounts"]["lndhub"]["api_url"]
env[:lndhub_api_url] = node["akkounts"]["lndhub"]["api_url"] env[:lndhub_api_url] = node["akkounts"]["lndhub"]["api_url"]
env[:lndhub_public_url] = node["akkounts"]["lndhub"]["public_url"] env[:lndhub_public_url] = node["akkounts"]["lndhub"]["public_url"]
env[:lndhub_public_key] = node["akkounts"]["lndhub"]["public_key"]
if postgres_readonly_host if postgres_readonly_host
env[:lndhub_admin_ui] = true env[:lndhub_admin_ui] = true
env[:lndhub_pg_host] = postgres_readonly_host env[:lndhub_pg_host] = postgres_readonly_host