|
| 1 | +/** |
| 2 | +* Module for user provided dashboard configurations |
| 3 | +* @module frontend/express/config |
| 4 | +*/ |
| 5 | + |
| 6 | +/** @lends module:frontend/express/config */ |
1 | 7 | 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 | + */ |
2 | 22 | mongodb: {
|
3 | 23 | host: "localhost",
|
4 | 24 | db: "countly",
|
@@ -42,12 +62,34 @@ var countlyConfig = {
|
42 | 62 | //mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
|
43 | 63 | mongodb: "mongodb://localhost:27017/countly",
|
44 | 64 | */
|
| 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 | + */ |
45 | 78 | web: {
|
46 | 79 | port: 6001,
|
47 | 80 | host: "localhost",
|
48 |
| - use_intercom: true |
| 81 | + use_intercom: true, |
| 82 | + track:"all" |
49 | 83 | },
|
| 84 | + /** |
| 85 | + * Legacy value, not supported |
| 86 | + * @type {string} |
| 87 | + */ |
50 | 88 | path: "",
|
| 89 | + /** |
| 90 | + * Legacy value, not supported |
| 91 | + * @type {string} |
| 92 | + */ |
51 | 93 | cdn: ""
|
52 | 94 | };
|
53 | 95 |
|
|
0 commit comments