Database Connector Configurations
Following is the procedure to configure Database Connector
- Stop
EF_DatabaseConnector
service in Windows Services pane. - Navigate to
<installation-dir>\hybrid-chat\core\database_connector
- Open
variables.env
with any text editor and change required configurations. Save and close the file - Start
EF_DatabaseConnector
service. Checks logs in/EFLogs/chat-solution/database-connector/
directory.
Configuration
Following table explains Database Connector configurations
Configuration Variable | Default Value | Expected Value | Limitations | Description | |
---|---|---|---|---|---|
1 | HTTPS_PORT | 8450 | Number | Only applicable if ENABLE_HTTPS is true | Port where Database Connector is hosted over HTTPS. |
2 | HTTP_PORT | 8050 | Number | Only applicable if ENABLE_HTTPS is false | Port where Database Connector is hosted over HTTP. |
3 | MONGO_HOST_PRIM | localhost | String | Primary Mongo DB URL. | |
4 | MONGO_HOST_SEC | URL of Secondary MONGO | String | Secondary Mongo DB URL. | |
5 | MONGO_USER | dbconnector | String | Mongo DB user for Database Connector database | |
6 | MONGO_PWD | Expertflow464 | String | Mongo DB password for Database Connector database | |
7 | DBNAME | chatsolution | String | Database name which is used by Database Connector | |
8 | ENABLE_MONGO_SSL | false | Boolean true / false | If Mongo DB supports SSL, set it to true , false otherwise | |
9 | ENABLE_HTTPS | true | Boolean true / false | Specifies the protocol for Database Connector hosting ( HTTPD / HTTP ) | |
10 | HTTPS_KEY_PATH | https_things/localhost.key | String | Applicable only if ENABLE_HTTPS is true | Certificate key path for HTTPS protocol |
11 | HTTPS_CERTIFICATE_PATH | https_things/localhost.cert | String | Applicable only if ENABLE_HTTPS is true | Certificate path for HTTPS protocol |
12 | HTTPS_CERTIFICATE_PASSPHRASE | String | Applicable only if ENABLE_HTTPS is true | Certificate's passphrase whose path is provided in HTTPS_CERTIFICATE_PATH | |
13 | MONGO_CERTIFICATE_PATH | https_things/cert.pem | String | Applicable only if ENABLE_MONGO_SSL is true | Mongo DB client certificate for SSL connection. Only PEM certificates are supported yet |
14 | AMQ_PRIM | localhost | String | This is TCP connection, it doesn't support http:// or https:// before this path | ActiveMQ host name / ip. |
15 | AMQ_SEC | localhost | String | This is TCP connection, it doesn't support http:// or https:// before this path | Secondary ActiveMQ host name / ip. |
16 | AMQ_TLS_ENABLED | true | String | Specifies Database Connector's connection to ActiveMQ is over SSL. true to enable SSL, false otherwise | |
17 | AMQ_CRED_PRIM | admin:admin | String | ActiveMQ username and Password | |
18 | AMQ_CRED_SEC | admin:admin | String | Secondary ActiveMQ username and Password | |
19 | AMQ_CONSUMER_PRIORITY` | 100 | Number | ||
20 | CERTIFICATE_PATH | https_things/client.pem | String | Applicable only if STOMP_TLS_ENABLED is true | ActiveMQ client certificate path |
21 | CERTIFICATE_KEY_PATH | https_things/client.key | String | Applicable only if STOMP_TLS_ENABLE is true | Certificate key path for ActiveMQ client certificate |
22 | CERTIFICATE_AUTHORITY_PATH | https_things/chat-server.ca-bundle | String | Certificate authority path for Database Connector, it consists of client certificates of Chat Server for API calls | |
23 | CERTIFICATE_AUTHORITY_PASSPHRASE | password | String | Certificate Authority Passphrase for certificate authority whose path is provided in CERTIFICATE_AUTHORITY_PATH |