Skip to main content
Skip table of contents

Database Connector Configurations

Following is the procedure to configure Database Connector

  1. Stop EF_DatabaseConnector service in Windows Services pane.
  2. Navigate to <installation-dir>\hybrid-chat\core\database_connector
  3. Open variables.env with any text editor and change required configurations. Save and close the file
  4. Start EF_DatabaseConnector service. Checks logs in /EFLogs/chat-solution/database-connector/ directory.

Configuration

Following table explains Database Connector configurations


Configuration VariableDefault ValueExpected ValueLimitationsDescription
1HTTPS_PORT8450NumberOnly applicable if ENABLE_HTTPS is true Port where Database Connector is hosted over HTTPS.
2HTTP_PORT8050NumberOnly applicable if ENABLE_HTTPS is false Port where Database Connector is hosted over HTTP.
3MONGO_HOST_PRIMlocalhostString
Primary Mongo DB URL. 
4MONGO_HOST_SECURL of Secondary MONGOString
Secondary Mongo DB URL.
5MONGO_USERdbconnectorString
Mongo DB user for Database Connector database
6MONGO_PWDExpertflow464String
Mongo DB password for Database Connector database
7DBNAMEchatsolutionString
Database name which is used by Database Connector
8ENABLE_MONGO_SSLfalseBoolean true / false 
If Mongo DB supports SSL, set it to true , false  otherwise
9ENABLE_HTTPStrueBoolean true / false 
Specifies the protocol for Database Connector hosting ( HTTPD / HTTP )
10HTTPS_KEY_PATHhttps_things/localhost.keyStringApplicable only if ENABLE_HTTPS is true Certificate key path for HTTPS protocol
11HTTPS_CERTIFICATE_PATHhttps_things/localhost.certStringApplicable only if ENABLE_HTTPS is true Certificate path for HTTPS protocol
12HTTPS_CERTIFICATE_PASSPHRASE
StringApplicable only if ENABLE_HTTPS is true Certificate's passphrase whose path is provided in HTTPS_CERTIFICATE_PATH
13MONGO_CERTIFICATE_PATHhttps_things/cert.pem StringApplicable only if ENABLE_MONGO_SSL is true Mongo DB client certificate for SSL connection. Only PEM certificates are supported yet
14AMQ_PRIMlocalhostStringThis is TCP connection, it doesn't support http:// or https:// before this pathActiveMQ host name / ip.
15AMQ_SEClocalhostStringThis is TCP connection, it doesn't support http:// or https:// before this pathSecondary ActiveMQ host name / ip.
16AMQ_TLS_ENABLEDtrueString
Specifies Database Connector's connection to ActiveMQ is over SSL. true  to enable SSL, false  otherwise
17AMQ_CRED_PRIMadmin:adminString
ActiveMQ username and Password
18AMQ_CRED_SECadmin:adminString
Secondary ActiveMQ username and Password
19AMQ_CONSUMER_PRIORITY`100Number

20CERTIFICATE_PATHhttps_things/client.pemStringApplicable only if STOMP_TLS_ENABLED is true ActiveMQ client certificate path
21CERTIFICATE_KEY_PATHhttps_things/client.keyStringApplicable only if STOMP_TLS_ENABLE is true Certificate key path for ActiveMQ client certificate
22CERTIFICATE_AUTHORITY_PATHhttps_things/chat-server.ca-bundleString
Certificate authority path for Database Connector, it consists of client certificates of Chat Server for API calls
23CERTIFICATE_AUTHORITY_PASSPHRASEpasswordString
Certificate Authority Passphrase for certificate authority whose path is provided in CERTIFICATE_AUTHORITY_PATH
JavaScript errors detected

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

If this problem persists, please contact our support.