-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathecosystem-pop3.json
More file actions
88 lines (88 loc) · 2.34 KB
/
ecosystem-pop3.json
File metadata and controls
88 lines (88 loc) · 2.34 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"apps": [
{
"name": "pop3-995",
"script": "pop3.js",
"max_restarts": 999,
"max_memory_restart": "20G",
"exec_mode": "cluster",
"wait_ready": true,
"instances": "max",
"pmx": false,
"error_file": "/var/log/pm2/pop3-995-error.log",
"out_file": "/var/log/pm2/pop3-995-out.log",
"combine_logs": true,
"merge_logs": true,
"env_production": {
"NODE_ENV": "production",
"POP3_PORT": 995
}
},
{
"name": "pop3-2995",
"script": "pop3.js",
"max_restarts": 999,
"max_memory_restart": "20G",
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"error_file": "/var/log/pm2/pop3-2995-error.log",
"out_file": "/var/log/pm2/pop3-2995-out.log",
"combine_logs": true,
"merge_logs": true,
"env_production": {
"NODE_ENV": "production",
"POP3_PORT": 2995
}
},
{
"name": "proxy-http",
"script": "proxy.js",
"max_restarts": 999,
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"error_file": "/var/log/pm2/proxy-http-error.log",
"out_file": "/var/log/pm2/proxy-http-out.log",
"combine_logs": true,
"merge_logs": true,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 80,
"PROXY_REDIRECT": "https://forwardemail.net"
}
},
{
"name": "proxy-https",
"script": "proxy.js",
"max_restarts": 999,
"exec_mode": "fork",
"wait_ready": true,
"instances": "1",
"pmx": false,
"error_file": "/var/log/pm2/proxy-https-error.log",
"out_file": "/var/log/pm2/proxy-https-out.log",
"combine_logs": true,
"merge_logs": true,
"env_production": {
"NODE_ENV": "production",
"PROXY_PORT": 443,
"PROXY_PROTOCOL": "https",
"PROXY_REDIRECT": "https://forwardemail.net"
}
}
],
"deploy": {
"production": {
"user": "deploy",
"host": ["121.127.44.71"],
"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-pop3.json production"
}
}
}