forked from octoblu/meshblu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js.sample
50 lines (50 loc) · 1.45 KB
/
config.js.sample
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
port: 3000,
//tls: {
// sslPort: 443,
// cert: "/certs/server.crt",
// key: "/certs/server.key"
//},
log: true,
// MongoDB is optional. Comment this section out if not desired.
mongo: {
databaseUrl: "mongodb://user:[email protected]:1337/skynet"
},
// REDIS is optional. It's used for scaling session and sockets horizontally. Comment this section out if not desired.
redis: {
host: "xyz.redistogo.com",
port: "1234",
password: "abcdef"
},
// ElasticSearch is optional. It's used to analyze data. Comment this section out if not desired.
elasticSearch: {
host: "localhost",
port: "9200"
},
rateLimits: {
message: 10, // 10 transactions per user per second
data: 10, // 10 transactions per user per second
connection: 2, // 2 transactions per IP per second
query: 2, // 2 transactions per user per second
whoami: 10, // 10 transactions per user per second
unthrottledIps: ["54.186.134.252"] // allow unlimited transactions from these IP addresses
},
plivo: {
authId: "abc",
authToken: "123"
},
urbanAirship: {
key: "abc",
secret: "123"
},
coap: {
port: 5683,
host: "localhost"
},
//these settings are for the mqtt server, and skynet mqtt client
mqtt: {
databaseUrl: "mongodb://user:[email protected]:1337/skynet",
port: 1883,
skynetPass: "Very big random password 34lkj23orfjvi3-94ufpvuha4wuef-a09v4ji0rhgouj"
}
};