4
4
*/
5
5
6
6
const port = 3000 ;
7
-
7
+ const NODE_ENV = process . env . NODE_ENV ;
8
8
module . exports = {
9
+ port : 3000 ,
9
10
enableFileLogs : false ,
10
11
// Console logs are set to avoid the winston error of no defined transports
11
12
enableConsoleLogs : true ,
12
13
discordUnverifiedRoleId : "1234567890" ,
13
14
discordDeveloperRoleId : "9876543210" ,
14
15
discordNewComersChannelId : "709080951824842783" ,
15
16
discordMavenRoleId : "1212121212" ,
17
+ discordMissedUpdatesRoleId : "<discordMissedUpdatesRoleId>" ,
18
+ githubApi : {
19
+ baseUrl : "https://api.github.com" ,
20
+ org : "Real-Dev-Squad" ,
21
+ } ,
16
22
githubOauth : {
17
23
clientId : "clientId" ,
18
24
clientSecret : "clientSecret" ,
@@ -33,6 +39,17 @@ module.exports = {
33
39
rdsApi : {
34
40
baseUrl : `http://localhost:${ port } ` ,
35
41
} ,
42
+ rdsUi : {
43
+ baseUrl : "https://realdevsquad.com" ,
44
+ routes : {
45
+ authRedirection : "/goto" ,
46
+ } ,
47
+ goalAPI : {
48
+ baseUrl : "<goalBaseUrl>" ,
49
+ secretKey : "<goalSecretKey>" ,
50
+ cookieName : `goals-session-test` ,
51
+ } ,
52
+ } ,
36
53
discordBot : {
37
54
baseUrl : "DISCORD_BASE_URL" ,
38
55
} ,
@@ -48,6 +65,10 @@ module.exports = {
48
65
} ,
49
66
50
67
userToken : {
68
+ cookieName : `rds-session-${ NODE_ENV } ` ,
69
+ cookieV2Name : `rds-session-v2-${ NODE_ENV } ` ,
70
+ ttl : 30 * 24 * 60 * 60 , // in seconds
71
+ refreshTtl : 180 * 24 * 60 * 60 , // in seconds
51
72
publicKey :
52
73
"-----BEGIN PUBLIC KEY-----\n" +
53
74
"MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgHo6sGbw8qk+XU9sBVa4w2aEq01i\n" +
@@ -197,6 +218,33 @@ module.exports = {
197
218
"-----END PUBLIC KEY-----" ,
198
219
} ,
199
220
221
+ // Cloudinary keys
222
+ cloudinary : {
223
+ cloud_name : "Cloud_name" ,
224
+ api_key : "API_KEY" ,
225
+ api_secret : "api_secret_key" ,
226
+ } ,
227
+
228
+ // Cloudflare
229
+ cloudflare : {
230
+ CLOUDFLARE_ZONE_ID : "Cloudflare_Zone_ID_or_ID" ,
231
+ CLOUDFLARE_X_AUTH_KEY : "Cloudflare_API_Auth_Key" ,
232
+ CLOUDFLARE_X_AUTH_EMAIL : "Cloudflare_User_Email" ,
233
+ } ,
234
+
235
+ integrations : {
236
+ newrelic : {
237
+ appName : "RDS_API_production" ,
238
+ licenseKey : "<newrelicLicenseKey>" ,
239
+ } ,
240
+ } ,
241
+
242
+ routesCacheTTL : {
243
+ "/members" : 900 ,
244
+ } ,
245
+
246
+ githubAccessToken : "GITHUB_PERSONAL_ACCESS_TOKEN" ,
247
+
200
248
Event100ms : {
201
249
APP_ACCESS_KEY : "EVENT_100MS_APP_ACCESS_KEY" ,
202
250
APP_SECRET : "EVENT_100MS_APP_SECRET" ,
0 commit comments