Mre Microservice Configurations
Follow these steps to configure Mre Microservice;
- Stop
EF_MreMicroservice
service in Windows Services pane - Navigate to
<installation-dir>\hybrid-chat\core\mre-microservice
- Open
mre-microservice-variables.env
for configurations - Save the file after changes and start
EF_MreMicroservice
service in Windows Services pane - Mre Microservice logs are generated at
/EFLogs/chat-solution/mre-microservice/
directory
Configuration
Following table explains the parameters:
Configuration Variable | Default Value | Expected Value | Limitations | Description | |
---|---|---|---|---|---|
1 | PORT | 8447 | Number | Applicable only when ENABLE_SSL is true | Port where Mre Microservice is hosted over HTTPS port |
2 | HTTP_PORT | 8084 | Number | Applicable only when ENABLE_SSL is false | Port where Mre Microservice is hosted over HTTP port |
3 | DB_URL | localhost | String | Mongo DB url | |
4 | DB_PORT | 27017 | Number | Mongo DB port | |
5 | DB_USER | mreUser | String | Mongo DB user | |
6 | DB_PASSWORD | Expertflow464 | String | Mongo DB password | |
7 | DB_NAME | mre | String | Mongo DB database name | |
8 | DB_RECONNECT_INTERVAL | 500 | Number | Mongo DB reconnect delay when Mongo DB server is disconnected | |
9 | DB_RECONNECT_TRIES | 30 | Number | Number of connection reconnect tries when MongoDB server is disconnected | |
10 | DB_KEEP_ALIVE_TIME | 3000 | Number | Connection keepalive time in milliseconds with MongoDB | |
11 | ENABLE_MONGO_SSL | false | Boolean true / false | Specifies if MongoDB connection should be over SSL | |
12 | MONGO_SSL_CERT_PATH | https/mongo_cert.pem | String | Applicable only when ENABLE_MONGO_SSL is true | MongoDB client certificate path |
13 | ALLOW_CORS | true | Boolean true / false | Allow CORS | |
14 | ENABLE_LOGS | true | Boolean true / false | Deprecated, Do not change | |
15 | ENABLE_CONFIGS | false | Boolean true / false | Deprecated, Do not change | |
16 | LOG_FILE_PATH | ./mre-microservice.log | String | Deprecated, Do not change | |
17 | LOG_LEVEL | info | String | Deprecated, Do not change | |
18 | UMM | https://localhost:8443 | String | Umm REST API endpoint | |
19 | UMM_USERNAME | admin | String | Umm username | |
20 | UMM_PWD | admiN123! | String | Umm password | |
21 | USER_TYPE | CC | String | User type:
This configuration should be same as USER_TYPE in Mre configuration | |
22 | AMQ_HOST | localhost | String | ActiveMQ broker host path | |
23 | AMQ_PORT | 61615 | Number | 61615 for connection over SSL only when AMQ_SSL_ENABLED is true , 61613 otherwise | ActiveMQ broker port. |
24 | AMQ_RETRIES | 30000 | Number | Number of retries if ActiveMQ server is inaccessible | |
25 | AMQ_USER | String | ActiveMQ user for broker | ||
26 | AMQ_PASS | String | ActiveMQ password for broker | ||
27 | AMQ_SSL_ENABLED | true | Boolean true / false | Enable / Disable SSL for ActiveMQ broker connection. true to enable, false otherwise | |
28 | AMQ_SSL_KEY_PATH | https/client.key | String | Applicable only when AMQ_SSL_ENABLED is true | ActiveMQ client certificate key path |
29 | AMQ_SSL_CERT_PATH | https/client.pem | String | Applicable only when AMQ_SSL_ENABLED is true | ActiveMQ client certificate path |
30 | AMQ_SSL_PASSPHRASE | password | String | Applicable only when AMQ_SSL_ENABLED is true | ActiveMQ client certificate passphrase |
31 | AMQ_SSL_CERT_AUTHORITY_PATH | https/broker.pem | String | Applicable only when AMQ_SSL_ENABLED is true | ActiveMQ client certificate authority passphrase |
32 | AMQ_QUEUE | MreMicroservice | String | ActiveMQ queue name where Mre Microservice listens. Do not change | |
33 | RE_QUEUE_NAME | RoutingEngine | String | ActiveMQ queue where Mre listens. Do not change | |
34 | ENABLE_SSL | true | Boolean true / false | Enable HTTPS if true . | |
35 | HTTPS_KEY_PATH | https/localhost.key | String | Applicable only when ENABLE_SSL is true | HTTPS server certificate key path |
36 | HTTPS_CERT_PATH | https/localhost.cert | String | Applicable only when ENABLE_SSL is true | HTTPS server certificate path |
37 | PASSPHRASE | String | Applicable only when ENABLE_SSL is true | HTTPS server certificate passphrase | |
38 | CERT_BUNDLE_PATH | https/mre-microservice.ca-bundle | String | Applicable only when ENABLE_SSL is true | Mre Microservice certificate trust store path |