-
Notifications
You must be signed in to change notification settings - Fork 9
/
settings.js
77 lines (70 loc) · 1.81 KB
/
settings.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
// ----------------------------------------------------------------------
// APPLICATION SETTINGS FILE
// ----------------------------------------------------------------------
var fs = require('fs');
/**
* subscription plans
*/
var plans = {
'mini': {
'type': 'mini',
'amount': 0,
'description': 'Taskground free account',
'members': 3
},
'small': {
'type': 'small',
'amount': 59,
'description': 'Taskground subscription for small teams',
'members': 10
},
'regular': {
'type': 'regular',
'amount': 139,
'description': 'Taskground subscription for regular teams',
'members': 25
}
};
/**
* Mandrill settings
*/
var mandrillSettings = {
'username': '',
'password': ''
}
/**
* development settings
*/
var developmentSettings = {
'systemEmail': 'noreply@taskground.com',
'paypalUsername': 'username',
'paypalPassword': 'password',
'paypalSignature': 'signature',
'paypalEnvironment': 'environment',
'paypalReturnURL': 'http://192.168.1.10:3100/success',
'paypalCancelURL': 'http://192.168.1.10:3100',
'plans': plans,
'Mandrill': mandrillSettings
};
/**
* production settings
*/
var productionSettings = {
'systemEmail': 'noreply@taskground.com',
'paypalUsername': 'username',
'paypalPassword': 'password',
'paypalSignature': 'signature',
'paypalEnvironment': 'production',
'paypalReturnURL': 'http://taskground.com/success',
'paypalCancelURL': 'http://taskground.com',
'paypalIPNUrl': 'http://taskground.com/paypal/ipn',
'plans': plans,
'Mandrill': mandrillSettings
};
// export settings
// if development.lock file exists return the development settings
var settings = developmentSettings;
if (!fs.existsSync('./development.lock')) {
settings = productionSettings;
}
module.exports = settings;