Database Connector Environment Variables

Following are the environment variables used in database-connector service.


Config Parameter

Expected Value

Notes

HTTP_PORT

Default is 8080. However , any available port can be used.

The default http port.

This port is used by chat server for establishing the connection with database connector service over http.

HTTPS-PORT

Default is 8443. However , any available port can be used.

The default https port.

This port is used by chat server for establishing the connection with database connector service over https.

DBURL

mongo

This is the URL of the mongo service

DBUSER

dbconnector

The value of MONGODB_USER parameter in mongo service

DBPWD

databasePassword

The value MONGODB_PASSWORD parameter in mongo service

DBNAME

chatsolution

The value MONGODB_DATABASE parameter in mongo service

ENABLE_HTTPS

true/false

Set value to true if you want to host connector on https.

HTTPS_KEY_PATH

https_things/localhost.key

This is private key file path used for https.

HTTPS_CERTIFICATE_PATH

https_things/localhost.cert

This is certificate file path used for https.

ENABLE_MONGO_SSl

true/false

Set value to true  for secure connection with mongo service. Otherwise set value to false

MONGO_CERTIFICATE_PATH

https_things/cert.pem

This is the mongo certificate file path used for secure connection with mongo instance.

AMQ_HOST

activemq

This is URL of ActiveMQ service.

AMQ_PORT   -

61615   

This is ActiveMQ  service TCP port. 61613 if STOMP_TLS_ENABLED parameter is false.

STOMP_TLS_ENABLED

true/false

Set the value to true to enable SSL connection with  ActiveMQ service. Use port 61615 if true, 61613 otherwise.

CERTIFCATE_PATH

build_config/https/client.pem

The path of of default self signed certificate for AMQ stomp TSL.Do not change this value unless you are using a valid domain signed certificate.

CERTIFICATE_KEY_PATH

build_config/https/client.key

The path of of default self signed certificate key for AMQ stomp TSL. Do not change this value unless you are using a valid domain signed certificate.

CERTIFICATE_AUTHORITY_PASSPHRASE

password

AMQ Certificate passphrase. Do not change this value unless you are using a valid domain signed certificate.

AMQ_RETRIES

30

No of retries chat service should attempt if connection is lost with  ActiveMQ  service

AMQ_DELAY

1000

Time in milliseconds chat service should wait between each try with reconnection to ActiveMQ  service.