.env: Use uppercase for env vars
parent
e13a062f2b
commit
fb80d2a8b4
29
.env
29
.env
|
@ -1,16 +1,15 @@
|
|||
NODE_ENV=dev
|
||||
amqp_hostname=localhost
|
||||
amqp_port=5672
|
||||
amqp_username=
|
||||
amqp_password=
|
||||
amqp_frameMax=0
|
||||
amqp_heartbeat=2
|
||||
amqp_vhost=
|
||||
amqp_exchange=
|
||||
amqp_retries=30
|
||||
amqp_retry_wait=1
|
||||
prom_hostname=
|
||||
prom_port=9091
|
||||
prom_push_interval_ms=5000
|
||||
process_interval_ms=2000
|
||||
|
||||
AMQP_HOSTNAME=localhost
|
||||
AMQP_PORT=5672
|
||||
AMQP_USERNAME=
|
||||
AMQP_PASSWORD=
|
||||
AMQP_FRAMEMAX=0
|
||||
AMQP_HEARTBEAT=2
|
||||
AMQP_VHOST=
|
||||
AMQP_EXCHANGE=
|
||||
AMQP_RETRIES=30
|
||||
AMQP_RETRY_WAIT=1
|
||||
PROM_HOSTNAME=
|
||||
PROM_PORT=9091
|
||||
PROM_PUSH_INTERVAL_MS=5000
|
||||
PROCESS_INTERVAL_MS=2000
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue