-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
44 lines (43 loc) · 978 Bytes
/
config.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
33
34
35
36
37
38
39
40
41
42
43
44
var path = require('path');
var rootPath = path.normalize(__dirname);
var http_port = 3000;
var ws_port = 3333;
module.exports = {
google: {
"sheet_id":"",
"type": "service_account",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""
},
dev: {
db: 'mongodb://localhost/wsn',
root: rootPath,
app: {
hport: http_port,
wsport: ws_port,
host:'http://localhost:'+http_port+'/',
ws:'ws://localhost:'+ws_port,
name: 'WSN',
secret: ''
}
},
prod: {
hport: http_port,
wsport: ws_port,
db: 'mongodb://localhost/wsn',
root: rootPath,
app: {
host:'http://138.197.115.126:'+http_port+'/',
ws:'ws://138.197.115.126:'+ws_port,
name: 'WSN',
secret: ''
}
}
}