forked from jsheen/server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.js
85 lines (78 loc) · 2.17 KB
/
config.example.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
80
81
82
83
84
85
// Server configuration
module.exports = {
NODE_ENV: 'dev',
SSL_CERT_PATH: '',
// set host to your public IP address to test Twilio voice calling
host: process.env.SERVER_HOST || 'localhost:3000',
database: 'mongodb://localhost:27017/upchieve',
sessionSecret: process.env.SESSION_SECRET || 'secret',
saltRounds: 10,
sendgrid: {
apiKey: process.env.SENDGRID_API_KEY || '',
contactTemplate: 'd-e79546f380874c58965c163f45df2ef4',
verifyTemplate: 'd-02281875a1cf4575bd3568e674faf147',
resetTemplate: 'd-5005d2beb2ad49a883a10364f3e14b81',
partnerOrgSignupAlertTemplate: 'd-238200a8df0d4493b12defbf472901b9'
},
mail: {
senders: {
noreply: '[email protected]'
},
receivers: {
contact: '[email protected]',
staff: '[email protected]'
}
},
client: {
host: 'localhost:8080'
},
socketsPort: 3001,
volunteerPartnerManifests: {
example: {
name: 'Example - Regular',
mathCoachingOnly: false
},
example2: {
name: 'Example - Email Requirement',
requiredEmailDomains: ['example.com'],
mathCoachingOnly: false
},
example3: {
name: 'Example - Email Requirement & Math Only',
requiredEmailDomains: ['example.org', 'example.net'],
mathCoachingOnly: true
}
},
studentPartnerManifests: {
example: {
name: 'Example - No School',
highSchoolSignup: false,
highSchoolSignupRequired: false
},
example2: {
name: 'Example - School Optional',
highSchoolSignup: true,
highSchoolSignupRequired: false
},
example3: {
name: 'Example - School Required',
highSchoolSignup: true,
highSchoolSignupRequired: true
}
},
// Sentry Data Source Name
sentryDsn: '',
// Twilio Credentials
accountSid: '',
authToken: '',
sendingNumber: '',
// Failsafe notification options
// time until second (desperate) SMS message is sent
desperateSMSTimeout: 300000,
// time until voice call is made
desperateVoiceTimeout: 600000,
// voice to use to render speech
voice: 'man',
VOLUNTEER_CODES: process.env.UPCHIEVE_VOLUNTEER_CODES || '',
STUDENT_CODES: process.env.UPCHIEVE_STUDENT_CODES || ''
}