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_PRIM | mongo | primary 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 |
| The value |
ENABLE_MONGO_SSl | true/false | Set value to |
ENABLE_HTTPS | true/false | Set value to |
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_SEC | activemq | This is URL of secondary ActiveMQ service. |
AMQ_CRED_PRIM | admin:admin | : separated credentials of primary ActiveMQ. |
AMQ_CRED_SEC | admin: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_PRIORITY | 100 | Default 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_PATH | https_things/chat-server.ca-bundle |