forked from fiverr/devflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js.dev
More file actions
119 lines (110 loc) · 3 KB
/
config.js.dev
File metadata and controls
119 lines (110 loc) · 3 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
module.exports = function(env) {
var global = {
sessionSecret: 'yourSecret',
mongo: 'mongodb://localhost:27017/devflow',
domain: 'yourdomain',
home_url: 'yoururl',
google: {
clientId: '',
clientSecret: '',
callbackURL: ''
},
mail: {
isEnabled: false
},
hipchat: {
isEnabled: false,
rooms: {}
},
slack: {
isEnabled: false,
rooms: {}
},
github: {
organization: 'yourorg',
accessToken: ''
},
requests: {
notifyRepos: false,
},
jobs: {
serverRelease: {
timeout: 1000 * 60 * 5
},
clearReviewers: {
announcementRoom: 'pullrequest'
}
},
client: {
requests: {
graylog: {
types: ['BE', 'Team1', 'Team2', 'Team3'],
typeTitle: 'Team',
linkTitle: 'Link',
linkRegex: '^http://graylog.yourdomain.com/',
useSmallLabels: true,
constantEnv: 'Graylog Link',
rejectable: false,
selfTakable: true,
showTeam: false
},
pullrequest: {
types: ['BE', 'FE', 'Android', 'IOS'],
typeTitle: 'Type',
linkTitle: 'Github Link',
linkRegex: '^https://github.com/',
hasNumber: true,
rejectable: true,
showTeam: true,
rejectionReasons: {}
}
},
links: [
{text: 'Link1', url: ''},
{text: 'Link2', url: ''},
],
refreshInterval: 1000 * 60 * 5
}
};
var config = {
development: {
port: 3000,
google: {
clientId: '',
clientSecret: '',
callbackURL: ''
}
},
production: {
port: 3005,
hipchat: {
isEnabled: true,
authToken: '',
rooms: {
pullrequest: 1,
graylog: 2,
server: 3
}
},
requests: {
notifyRepos: true,
},
mail: {
isEnabled: false,
service: 'Gmail',
auth: {
user: '',
pass: ''
},
from: 'Devflow <devflow@yourdomain.com>',
signature: 'Sincerly,<br>The Devflow Team.'
}
}
}
for (configKey in global) {
if (!config[env][configKey]) {
config[env][configKey] = global[configKey];
}
}
return (config[env]);
}