Skip to content

Commit

Permalink
just print values for that env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jan 16, 2025
1 parent 188b127 commit aeddd8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/configService.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ function processEnvironmentVariables() {
'IOTA_HTTP_PORT',
'IOTA_HTTP_TIMEOUT',
'IOTA_HTTP_KEY',
'IOTA_HTTP_CERT'
'IOTA_HTTP_CERT',
'IOTA_CONFIG_RETRIEVAL',
'IOTA_DEFAULT_KEY',
'IOTA_DEFAULT_TRANSPORT'
];
const mqttVariables = [
'IOTA_MQTT_PROTOCOL',
Expand Down Expand Up @@ -229,7 +232,7 @@ function processEnvironmentVariables() {
config.mqtt.clientId = process.env.IOTA_MQTT_CLIENT_ID;
}

if (process.env.IOTA_MQTT_DISABLED && process.env.IOTA_MQTT_DISABLED.trim().toLowerCase() === 'true'){
if (process.env.IOTA_MQTT_DISABLED && process.env.IOTA_MQTT_DISABLED.trim().toLowerCase() === 'true') {
config.mqtt.disabled = true;
}

Expand Down Expand Up @@ -274,7 +277,7 @@ function processEnvironmentVariables() {
config.amqp.retryTime = process.env.IOTA_AMQP_RETRY_TIME;
}

if (process.env.IOTA_AMQP_DISABLED && process.env.IOTA_AMQP_DISABLED.trim().toLowerCase() === 'true'){
if (process.env.IOTA_AMQP_DISABLED && process.env.IOTA_AMQP_DISABLED.trim().toLowerCase() === 'true') {
config.amqp.disabled = true;
}

Expand Down

0 comments on commit aeddd8a

Please sign in to comment.