-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
57 lines (57 loc) · 1.58 KB
/
ecosystem.config.js
File metadata and controls
57 lines (57 loc) · 1.58 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
module.exports = {
apps: [
{
name: 'sentinel-ai',
cwd: __dirname + '/platform',
script: 'cre_analyze_endpoint.py',
interpreter: __dirname + '/platform/.venv/bin/python',
autorestart: true,
max_restarts: 10,
min_uptime: '10s',
restart_delay: 5000,
kill_timeout: 3000,
max_memory_restart: '300M',
env: {
PYTHONUNBUFFERED: '1',
PORT: '5060',
},
},
{
name: 'sentinel-dashboard',
cwd: __dirname + '/dashboard',
script: 'node_modules/.bin/next',
args: 'start -p 3016 --hostname 127.0.0.1',
autorestart: true,
max_restarts: 10,
min_uptime: '10s',
restart_delay: 5000,
kill_timeout: 3000,
max_memory_restart: '512M',
env: {
NODE_ENV: 'production',
PORT: '3016',
HOST: '127.0.0.1',
},
},
{
name: 'sentinel-tunnel',
script: '/usr/local/bin/cloudflared',
args: 'tunnel --config ' + (process.env.HOME || '/home/' + require('os').userInfo().username) + '/.cloudflared/sentinel-dashboard-tunnel.yml run',
autorestart: true,
max_restarts: 10,
min_uptime: '10s',
restart_delay: 10000,
kill_timeout: 5000,
},
{
name: 'sentinel-ai-tunnel',
script: '/usr/local/bin/cloudflared',
args: 'tunnel --config ' + (process.env.HOME || '/home/' + require('os').userInfo().username) + '/.cloudflared/sentinel-ai-tunnel.yml run',
autorestart: true,
max_restarts: 10,
min_uptime: '10s',
restart_delay: 10000,
kill_timeout: 5000,
},
],
};