forked from Kevnz/node2dm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exampleConfig.js
33 lines (31 loc) · 1.1 KB
/
exampleConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Required variables
* For C2DM:
* username (Google account ID)
* password (Google account password)
* source (Google source, like 'com-your-app')
*
* For GCM:
*
* gcmAPIKey
*
*
* port (port to bind to)
* address (address to bind to)
* statsD {host: (statsD host), port: (statsD port), prefix/suffix: (stat name prefix/suffix), samplingRate: sampling rate)
* debugServerPort (port to bind for c2dm stats / debug server)
* debugServeraddress (address to bind for c2dm stats / debug server)
* gcmDebugServerPort (port to bind for gcm stats / debug server)
* gcmServerAddress (address to bind for gcm stats / debug server)
* serverCallbackHost / serverCallbackPort / serverCallbackPath / serverCallbackSharedSecret /
* serverCallbackProtocol
* (if specified, will be used to send a POST back to a service in order to handle bad tokens)
*
*/
var config = {}
config.port = 8120;
config.address= "127.0.0.1";
config.syslog = false;
config.mpns = false;
config.statsD = {host: "127.0.0.1", port: 8125, prefix: "stats.node2dm.", suffix: "", samplingRate: 0.1};
module.exports = config;