This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecosystem.config.js
79 lines (73 loc) · 2.65 KB
/
ecosystem.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
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
module.exports = {
apps: [{
name: "router",
script: "dist/index.js",
// Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '3G',
}],
deploy: {
production: {
user: 'node',
host: 'ocean-fra-node',
ref: 'origin/master',
repo: "https://github.com/digital-stage/router.git",
path: '/node/router',
env: {
"NODE_ENV": "production",
"DOMAIN": "fra.routers.digital-stage.org",
"PORT": "3000",
"PUBLIC_PORT": "443",
"ROOT_PATH": "",
"USE_IPV6": "true",
"API_URL": "https://api.digital-stage.org",
"AUTH_URL": "https://auth.digital-stage.org",
"EMAIL": "test@digital-stage.org",
"PASSWORD": "testtesttest",
"ROUTER_DIST_URL": "wss://routers.digital-stage.org",
"RTC_MIN_PORT": "40000",
"RTC_MAX_PORT": "49999",
"CONNECTIONS_PER_CPU": "5000",
},
'post-deploy': 'npm install && npm run build && pm2 reload ecosystem.config.js --env production'
},
frankfurt: {
user: 'tobias',
host: 'router-fra',
ref: 'origin/master',
repo: "https://github.com/digital-stage/router.git",
path: '/node/router',
env: {
"NODE_ENV": "production",
"DOMAIN": "frankfurt.digital-stages.de",
"PATH": "",
"PORT": "3000",
"RTC_MIN_PORT": "40000",
"RTC_MAX_PORT": "49999",
"DEBUG": "router*",
"PUBLIC_PORT": "443"
},
'post-deploy': 'npm install && npm run build && pm2 reload ecosystem.config.js --env frankfurt'
},
amsterdam: {
user: 'tobias',
host: 'router-ams',
ref: 'origin/master',
repo: "https://github.com/digital-stage/router.git",
path: '/node/router',
env: {
"NODE_ENV": "production",
"PORT": "3000",
"DOMAIN": "amsterdam.digital-stages.de",
"PATH": "",
"DEBUG": "router*",
"PUBLIC_PORT": "443",
"RTC_MIN_PORT": "40000",
"RTC_MAX_PORT": "49999",
},
'post-deploy': 'npm install && npm run build && pm2 reload ecosystem.config.js --env amsterdam'
}
}
};