forked from cert-ee/s4a-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2.config.js
51 lines (51 loc) · 1.82 KB
/
pm2.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
module.exports = {
apps: [
{
name: 's4a-detector-api-server',
cwd: './server',
interpreter: '/bin/sh',
script: 'yarn',
// exec_mode : 'cluster',
args: 'prodenv', // process.env.NODE_ENV ?
env: {
NODE_ENV: 'production',
MONGODB_HOST: process.env.MONGODB_HOST,
MONGODB_PORT: process.env.MONGODB_PORT,
MONGODB_DATABASE: process.env.MONGODB_DATABASE,
MONGODB_USER: process.env.MONGODB_USER,
MONGODB_PASSWORD: process.env.MONGODB_PASSWORD,
CENTRAL_API_URL: process.env.CENTRAL_API_URL,
API_HOST: process.env.API_HOST,
API_PORT: process.env.API_PORT,
API_REST_ROOT_URL: process.env.API_REST_ROOT_URL,
// SHELL: process.env.SHELL,
SHELL: '/bin/bash',
PATH_BASE: process.env.PATH_BASE,
PATH_CSR_SIGNED: process.env.PATH_CSR_SIGNED,
PATH_CSR_UNSIGNED: process.env.PATH_CSR_UNSIGNED,
PATH_SURICATA_RULES_OUT: process.env.PATH_SURICATA_RULES_OUT,
PATH_MOLOCH_YARA_OUT: process.env.PATH_MOLOCH_YARA_OUT,
PATH_MOLOCH_WISE_IP_OUT: process.env.PATH_MOLOCH_WISE_IP_OUT,
PATH_MOLOCH_WISE_URL_OUT: process.env.PATH_MOLOCH_WISE_URL_OUT,
PATH_MOLOCH_WISE_DOMAIN_OUT: process.env.PATH_MOLOCH_WISE_DOMAIN_OUT,
DEBUG_LEVEL: process.env.DEBUG_LEVEL,
DEBUG: process.env.DEBUG
}
},
{
name: 's4a-detector-client',
cwd: './client',
interpreter: '/bin/sh',
script: 'yarn',
// exec_mode : 'cluster',
args: 'prodenv', // process.env.NODE_ENV ?
env: {
NODE_ENV: 'production',
API_URL: process.env.API_URL,
API_URL_BROWSER: process.env.API_URL_BROWSER,
DEBUG_LEVEL: process.env.DEBUG_LEVEL,
DEBUG: process.env.DEBUG
}
}
]
}