44 */
55
66const port = 3000 ;
7-
7+ const NODE_ENV = process . env . NODE_ENV ;
88module . exports = {
9+ port : 3000 ,
910 enableFileLogs : false ,
1011 // Console logs are set to avoid the winston error of no defined transports
1112 enableConsoleLogs : true ,
1213 discordUnverifiedRoleId : "1234567890" ,
1314 discordDeveloperRoleId : "9876543210" ,
1415 discordNewComersChannelId : "709080951824842783" ,
1516 discordMavenRoleId : "1212121212" ,
17+ discordMissedUpdatesRoleId : "<discordMissedUpdatesRoleId>" ,
18+ githubApi : {
19+ baseUrl : "https://api.github.com" ,
20+ org : "Real-Dev-Squad" ,
21+ } ,
1622 githubOauth : {
1723 clientId : "clientId" ,
1824 clientSecret : "clientSecret" ,
@@ -33,6 +39,17 @@ module.exports = {
3339 rdsApi : {
3440 baseUrl : `http://localhost:${ port } ` ,
3541 } ,
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+ } ,
3653 discordBot : {
3754 baseUrl : "DISCORD_BASE_URL" ,
3855 } ,
@@ -48,6 +65,10 @@ module.exports = {
4865 } ,
4966
5067 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
5172 publicKey :
5273 "-----BEGIN PUBLIC KEY-----\n" +
5374 "MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgHo6sGbw8qk+XU9sBVa4w2aEq01i\n" +
@@ -197,6 +218,33 @@ module.exports = {
197218 "-----END PUBLIC KEY-----" ,
198219 } ,
199220
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+
200248 Event100ms : {
201249 APP_ACCESS_KEY : "EVENT_100MS_APP_ACCESS_KEY" ,
202250 APP_SECRET : "EVENT_100MS_APP_SECRET" ,
0 commit comments