mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-22 22:25:43 +01:00
Backward compatible env vars
Backward compatible env vars
This commit is contained in:
parent
0da59b75da
commit
933e19df2c
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,8 @@ connect.validateNodeConfig = (config) => {
|
|||
|
||||
if(process.env.LN_SERVER_URL && process.env.LN_SERVER_URL.trim() !== '') {
|
||||
common.nodes[idx].ln_server_url = process.env.LN_SERVER_URL;
|
||||
} else if(process.env.LND_SERVER_URL && process.env.LND_SERVER_URL.trim() !== '') {
|
||||
common.nodes[idx].ln_server_url = process.env.LND_SERVER_URL;
|
||||
} else if(node.Settings.lnServerUrl && node.Settings.lnServerUrl.trim() !== '') {
|
||||
common.nodes[idx].ln_server_url = node.Settings.lnServerUrl;
|
||||
} else if(node.Settings.lndServerUrl && node.Settings.lndServerUrl.trim() !== '') {
|
||||
|
@ -143,6 +145,8 @@ connect.validateNodeConfig = (config) => {
|
|||
}
|
||||
if (process.env.CONFIG_PATH) {
|
||||
common.nodes[idx].config_path = process.env.CONFIG_PATH;
|
||||
} else if (process.env.LND_CONFIG_PATH) {
|
||||
common.nodes[idx].config_path = process.env.LND_CONFIG_PATH;
|
||||
} else if (node.Authentication && node.Authentication.lndConfigPath) {
|
||||
common.nodes[idx].config_path = node.Authentication.lndConfigPath;
|
||||
} else if (node.Authentication && node.Authentication.configPath) {
|
||||
|
|
Loading…
Add table
Reference in a new issue