Skip to content

Commit 7d932ad

Browse files
committed
[frontend] comment configuration file
1 parent 88a3939 commit 7d932ad

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

frontend/express/config.sample.js

+43-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1+
/**
2+
* Module for user provided dashboard configurations
3+
* @module frontend/express/config
4+
*/
5+
6+
/** @lends module:frontend/express/config */
17
var countlyConfig = {
8+
/**
9+
* MongoDB connection definition and options
10+
* @type {object}
11+
* @property {string} [host=localhost] - host where to connect to mongodb, default localhost
12+
* @property {array=} replSetServers - array with multiple hosts, if you are connecting to replica set, provide this instead of host
13+
* @property {string=} replicaName - replica name, must provide for replica set connection to work
14+
* @property {string} [db=countly] - countly database name, default countly
15+
* @property {number} [port=27017] - port to use for mongodb connection, default 27017
16+
* @property {number} [max_pool_size=500] - how large pool size connection per process to create, default 500 per process, not recommended to be more than 1000 per server
17+
* @property {string=} username - username for authenticating user, if mongodb supports authentication
18+
* @property {string=} password - password for authenticating user, if mongodb supports authentication
19+
* @property {object=} dbOptions - provide raw driver database options
20+
* @property {object=} serverOptions - provide raw driver server options, used for all, single, mongos and replica set servers
21+
*/
222
mongodb: {
323
host: "localhost",
424
db: "countly",
@@ -42,12 +62,34 @@ var countlyConfig = {
4262
//mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
4363
mongodb: "mongodb://localhost:27017/countly",
4464
*/
65+
/**
66+
* Default dashboard configuration
67+
* @type {object}
68+
* @property {number} [port=6001] - api port number to use, default 6001
69+
* @property {string} [host=localhost] - host to which to bind connection
70+
* @property {boolean} use_intercom - true, to use intercom in dashboard for communication with Countly
71+
* @property {string} track - allow Countly to collect stats about amount of apps and datapoints as well as feature usage.
72+
* Possible values are:
73+
* "all" - track all,
74+
* "GA" - track only Global admins,
75+
* "noneGA" - track only users who are not Global admins,
76+
* "none" - not to track anything or anyone
77+
*/
4578
web: {
4679
port: 6001,
4780
host: "localhost",
48-
use_intercom: true
81+
use_intercom: true,
82+
track:"all"
4983
},
84+
/**
85+
* Legacy value, not supported
86+
* @type {string}
87+
*/
5088
path: "",
89+
/**
90+
* Legacy value, not supported
91+
* @type {string}
92+
*/
5193
cdn: ""
5294
};
5395

0 commit comments

Comments
 (0)