The data store configuration file (db-config.json) defines the database connection settings that the OpenEdge Command Center server uses to communicate with MongoDB.

The default location for this file on the Windows platform is C:\Progress\OECC\data\conf, and that for the Linux platform is /usr/oecc/data/conf.

The sample db-config.json file is as follows:
{
    "dbHostNameAndPort": "<host name>: <port_number>",
    "srvRecord": false,
    "connectOptions": {
        "autoIndex": true,
        "connectTimeoutMS": 10000,
        "socketTimeoutMS": 45000,
		"auth": {
			"user": "username",
			"password": "password"
		},
		"authSource": "admin"
    },
}
The following table describes the key attributes in the db-config.json file:
Attribute Description
dbHostNameAndPort Specifies the host name and port number of the MongoDB that the server connects to. If the system cannot resolve the host name, replace host name with the IP address of the system.
srvRecord Indicates whether to use DNS SRV records for MongoDB connection. The default value is false.
user Username for MongoDB authentication.
password Password for MongoDB authentication. It is encrypted by default. If the MongoDB password changes, update this attribute with the cleartext password. When the server starts, the password is automatically encrypted.
authSource Specifies the name of the database where the MongoDB user credentials are stored. The default value is admin.
Note: Progress recommends that you do not change the default settings in the configuration file unless you have a specific requirement.