-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.example.js
64 lines (51 loc) · 1.11 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
var config = {
// application settings
port: process.env.PAASTOR_PORT || process.env.PORT || 3000,
appProtocol: "http://",
appdomain: "127.0.0.1",
helpUrl: "http://change.this.com/support",
webhookEndpointPath: '/',
// stripe
stripe: {
public_key: '',
secret_key: ''
},
// email templates
emailTemplateDir: 'templates/', // relative to root of the application
emailTemplateExt: '.html',
// email template fields
fromAddress: '',
fromAddressName: '',
supportAddress: '',
sincerely: '',
// settings for Nodemailer email module
nodemailer: {
service: "",
generateTextFromHTML: true,
auth: {
user: "",
pass: ""
},
//validateRecipients: true,
//debug: true,
maxConnections: 1
}
};
// Environment Specific Settings
switch(process.env.NODE_ENV) {
//
// Production
//
case "prod":
config.port = process.env.PAASTOR_PORT || 3000;
config.appProtocol = "https://";
config.appdomain = "paastor.com";
config.helpUrl = "https://paastor.com/pages/docs.html",
/* Stripe */
config.stripe = {
public_key: '',
secret_key: ''
};
break;
}
module.exports = config;