-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
87 lines (82 loc) · 2.41 KB
/
config.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"vars":{
"nodedir" : "/usr/share/nodejs",
"sitedir" : "%nodedir%/sites",
"pmapp" : "",
"pmapp2" : "%nodedir%/pure2r/app.min.js",
"pmapp3" : "%nodedir%/pure3r/pureapp.js",
"vwapp" : "%nodedir%/vwlt/app.js",
"hostid" : "puremfg.net",
"siteid" : "mydev",
"grpid" : "mydev",
"dbhost" : "localhost",
"dbname" : "MYDB",
"port" : 3000,
"vwport" : 800,
"tzoset" : "+8:00",
"mode" : "production",
"max_restarts" : 2,
"min_uptime" : "1m"
},
"apps":{
"puremfg":{
"name": "%siteid%.%hostid%",
"disabled":false,
"max_restarts" : "%max_restarts%",
"min_uptime": "%min_uptime%",
"appid": "puremfg",
"node_args": ["--no-deprecation"],
"script": "%pmapp%",
"env": {
"TZOSET": "%tzoset%",
"MOBILE": false,
"SITEID": "%siteid%",
"GRPID": "%grpid%",
"DATA": "%sitedir%/%siteid%/data",
"GRP_DATA": "%sitedir%/%siteid%/data",
"NODE_ENV": "%mode%",
"PORT": "%port%",
"vwport": "%vwport%",
"DBSA":{
"host": "%dbhost%",
"name":"%dbname%",
"user":"root",
"pwd":"bukit8002",
"engine": "MYSQL",
"pooling": true,
"connectionLimit": 5
}
},
"log_date_format": "DD-MM HH:mm:ss",
"exec_mode": "fork"
},
"vwlt":{
"name": "%siteid%-sf.%hostid%",
"appid": "vwlt",
"disabled":false,
"max_restarts" : "%max_restarts%",
"min_uptime": "%min_uptime%",
"node_args": ["--no-deprecation"],
"script": "%vwapp%",
"env": {
"TZOSET": "%tzoset%",
"SITEID": "%siteid%",
"USER_AGENT": false,
"NODE_ENV": "%mode%",
"PORT": "%vwport%",
"DBVW": "%sitedir%/%siteid%/data/dwap.db",
"DBSA":{
"host": "%dbhost%",
"name":"%dbname%",
"user":"root",
"pwd":"bukit8002",
"engine": "MYSQL",
"pooling": true,
"connectionLimit": 1
}
},
"log_date_format": "DD-MM HH:mm:ss",
"exec_mode": "fork"
}
}
}