Skip to main content
Skip table of contents

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.

MONGO_HOST_PRIMmongoprimary mongo db url
MONGO_HOST_SEC
secondary mongo db url
MONGO_REPLICASET_NAME

MONGO_USER
Username for Database
MONGO_PWD
Password for the above mentioned MONGO_USER

DBNAME

chatsolution

The value MONGODB_DATABASE parameter in mongo service

ENABLE_MONGO_SSl

true/false

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

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.

HTTPS_CERTIFICATE_PASSPHRASE

MONGO_CERTIFICATE_PATH

https_things/cert.pem

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

AMQ_PRIM

activemq

This is URL of primary ActiveMQ service.

AMQ_SECactivemqThis is URL of secondary ActiveMQ service.
AMQ_CRED_PRIMadmin:admin: separated credentials of primary ActiveMQ.
AMQ_CRED_SECadmin:admin: separated credentials of secondary ActiveMQ.

AMQ_TLS_ENABLED

true/false

Set the value to true to enable SSL connection with  ActiveMQ service. If true, port 61615 is used , 61613 otherwise.

AMQ_CONSUMER_PRIORITY100Default value is 100, Max is 127

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.

CERTIFICATE_AUTHORITY_PATHhttps_things/chat-server.ca-bundle
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.