Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2019-12-09 15:04:21 -0500
committerAustin Schaffer <austin.schaffer@ryansg.com>2019-12-12 10:27:09 -0500
commitfb80d2a8b42e83103e5dd60f723e3c9d88c671f7 (patch)
tree8162b487b609297baaa79925f63dc0cb86d28d1e /src
parente13a062f2b79d17320b62111504bc218a981e82b (diff)
downloadliza-fb80d2a8b42e83103e5dd60f723e3c9d88c671f7.tar.gz
liza-fb80d2a8b42e83103e5dd60f723e3c9d88c671f7.tar.bz2
liza-fb80d2a8b42e83103e5dd60f723e3c9d88c671f7.zip
.env: Use uppercase for env vars
Diffstat (limited to 'src')
-rw-r--r--src/system/AmqpPublisher.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/system/AmqpPublisher.ts b/src/system/AmqpPublisher.ts
index 1f728b3..edaa8c1 100644
--- a/src/system/AmqpPublisher.ts
+++ b/src/system/AmqpPublisher.ts
@@ -37,17 +37,17 @@ export function createAmqpConfig( env: NodeJS.ProcessEnv ): AmqpConfig
{
return <AmqpConfig>{
protocol: 'amqp',
- hostname: env.amqp_hostname,
- port: +( env.amqp_port || 0 ),
- username: env.amqp_username,
- password: env.amqp_password,
+ hostname: env.AMQP_HOSTNAME,
+ port: +( env.AMQP_PORT || 0 ),
+ username: env.AMQP_USERNAME,
+ password: env.AMQP_PASSWORD,
locale: 'en_US',
- frameMax: +( env.amqp_frameMax || 0 ),
- heartbeat: +( env.amqp_heartbeat || 0 ),
- vhost: env.amqp_vhost,
- exchange: env.amqp_exchange,
- retries: env.amqp_retries || 30,
- retry_wait: env.amqp_retry_wait || 1000,
+ frameMax: +( env.AMQP_FRAMEMAX || 0 ),
+ heartbeat: +( env.AMQP_HEARTBEAT || 0 ),
+ vhost: env.AMQP_VHOST,
+ exchange: env.AMQP_EXCHANGE,
+ retries: env.AMQP_RETRIES || 30,
+ retry_wait: env.AMQP_RETRY_WAIT || 1000,
};
}