-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathecosystem-mx.json
More file actions
74 lines (74 loc) · 1.91 KB
/
ecosystem-mx.json
File metadata and controls
74 lines (74 loc) · 1.91 KB
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
{
"apps": [
{
"name": "mx",
"script": "mx.js",
"max_restarts": 999,
"max_memory_restart": "8G",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"env_production": {
"NODE_ENV": "production"
},
"error_file": "/var/log/pm2/mx-error.log",
"out_file": "/var/log/pm2/mx-out.log",
"combine_logs": true,
"merge_logs": true
},
{
"name": "proxy-http",
"script": "proxy.js",
"max_restarts": 999,
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 80,
"PROXY_REDIRECT": "https://forwardemail.net"
},
"error_file": "/var/log/pm2/proxy-http-error.log",
"out_file": "/var/log/pm2/proxy-http-out.log",
"combine_logs": true,
"merge_logs": true
},
{
"name": "proxy-https",
"script": "proxy.js",
"max_restarts": 999,
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 443,
"PROXY_PROTOCOL": "https",
"PROXY_REDIRECT": "https://forwardemail.net"
},
"error_file": "/var/log/pm2/proxy-https-error.log",
"out_file": "/var/log/pm2/proxy-https-out.log",
"combine_logs": true,
"merge_logs": true
}
],
"deploy": {
"production": {
"user": "deploy",
"host": [
"121.127.44.56",
"121.127.44.59",
"138.197.213.185",
"104.248.224.170"
],
"ref": "origin/master",
"repo": "git@github.com:forwardemail/forwardemail.net.git",
"path": "/var/www/production",
"pre-deploy": "git reset --hard",
"post-deploy": "bash ./scripts/pm2-post-deploy.sh ecosystem-mx.json production"
}
}
}