forked from StateVoicesNational/Spoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspoke-pm2.config.js.template
95 lines (93 loc) · 2.5 KB
/
spoke-pm2.config.js.template
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
89
90
91
92
93
94
95
const env_production = {
NODE_ENV:'production',
SUPPRESS_SELF_INVITE:'',
AWS_ACCESS_KEY_ID:'',
AWS_SECRET_ACCESS_KEY:'',
AWS_S3_BUCKET_NAME: '',
APOLLO_OPTICS_KEY:'',
DEV_APP_PORT:8090,
PUBLIC_DIR:'./build/client',
ASSETS_DIR:'./build/client/assets',
ASSETS_MAP_FILE:'assets.json',
CAMPAIGN_ID:'campaign-id-hash',
DB_HOST:'127.0.0.1',
DB_PORT:5432,
DB_NAME:'spokedev',
DB_USER:'spoke',
DB_PASSWORD:'spoke',
DB_KEY:'',
DB_TYPE:'',
DB_MIN_POOL: 2,
DB_MAX_POOL: 10,
DB_USE_SSL: false,
DEFAULT_SERVICE:'twilio',
JOB_DB_HOST:'127.0.0.1',
JOB_DB_PORT:6379,
BASE_URL:'https://spoke.example.com',
PRIVACY_URL:'https://www.example.com/privacy',
AUTH0_DOMAIN:'example.auth0.com',
AUTH0_CLIENT_ID:'',
AUTH0_CLIENT_SECRET:'',
SESSION_SECRET:'',
NEXMO_API_KEY:'',
NEXMO_API_SECRET:'',
TWILIO_API_KEY:'',
TWILIO_APPLICATION_SID:'',
TWILIO_AUTH_TOKEN:'',
TWILIO_STATUS_CALLBACK_URL:'http://example.com:3000/twilio',
PHONE_NUMBER_COUNTRY: 'US',
EMAIL_HOST: "",
EMAIL_HOST_PASSWORD: "",
EMAIL_HOST_USER: "",
EMAIL_HOST_PORT: "",
EMAIL_FROM: "[email protected]",
ROLLBAR_CLIENT_TOKEN:'',
ROLLBAR_ACCESS_TOKEN:'',
ROLLBAR_ENDPOINT:'https://api.rollbar.com/api/1/item/',
ALLOW_SEND_ALL: false,
DST_REFERENCE_TIMEZONE: 'America/New_York'
}
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : 'spoke-server',
script : './build/server/server',
env_production : env_production
},
{
name : 'job-handler',
script : './build/server/workers/job-handler.js',
env_production : env_production
},
{
name : 'incoming-message-handler',
script : './build/server/workers/incoming-message-handler.js',
env_production : env_production
},
{
name : 'message-sender-01',
script : './build/server/workers/message-sender-01.js',
env_production : env_production
},
{
name : 'message-sender-234',
script : './build/server/workers/message-sender-234.js',
env_production : env_production
},
{
name : 'message-sender-56',
script : './build/server/workers/message-sender-56.js',
env_production : env_production
},
{
name : 'message-sender-789',
script : './build/server/workers/message-sender-789.js',
env_production : env_production
}
]
};