@@ -25,9 +25,9 @@ module.exports = {
25
25
TAGS : {
26
26
TAGS_BASE_URL : process . env . TAGS_BASE_URL || 'https://api.topcoder-dev.com' ,
27
27
TAGS_API_VERSION : process . env . TAGS_API_VERSION || '/v3' ,
28
- TAGS_FILTER : process . env . TAGS_FILTER || '/tags/?filter=domain%3DSKILLS%26status%3DAPPROVED&limit=1000' ,
28
+ TAGS_FILTER : process . env . TAGS_FILTER || '/tags/?filter=domain%3DSKILLS%26status%3DAPPROVED&limit=1000'
29
29
} ,
30
-
30
+ GROUPS_API_URL : process . env . GROUPS_API_URL || 'https://api.topcoder-dev.com/v5/groups' ,
31
31
// aws config params
32
32
AMAZON : {
33
33
AWS_ACCESS_KEY_ID : process . env . AWS_ACCESS_KEY_ID ,
@@ -48,7 +48,7 @@ module.exports = {
48
48
MEMBER_PROFILE_ES_INDEX : process . env . MEMBER_PROFILE_ES_INDEX || 'members-2020-01' ,
49
49
// member type, ES 6.x accepts only 1 Type per index and it's mandatory to define it
50
50
MEMBER_PROFILE_ES_TYPE : process . env . MEMBER_PROFILE_ES_TYPE || 'profiles' ,
51
- MEMBER_TRAIT_ES_INDEX : process . env . MEMBER_TRAIT_ES_INDEX || 'members -2020-01' ,
51
+ MEMBER_TRAIT_ES_INDEX : process . env . MEMBER_TRAIT_ES_INDEX || 'membertraits -2020-01' ,
52
52
MEMBER_TRAIT_ES_TYPE : process . env . MEMBER_TRAIT_ES_TYPE || 'profiletraits' ,
53
53
MEMBER_STATS_ES_INDEX : process . env . MEMBER_STATS_ES_INDEX || 'memberstats-2020-01' ,
54
54
MEMBER_STATS_ES_TYPE : process . env . MEMBER_STATS_ES_TYPE || 'stats' ,
@@ -62,12 +62,12 @@ module.exports = {
62
62
// file upload max size in bytes
63
63
FILE_UPLOAD_SIZE_LIMIT : process . env . FILE_UPLOAD_SIZE_LIMIT
64
64
? Number ( process . env . FILE_UPLOAD_SIZE_LIMIT ) : 10 * 1024 * 1024 , // 10M
65
-
65
+
66
66
// photo URL template, its <key> will be replaced with S3 object key,
67
67
// the URL is specific to AWS region and bucket, you may go to AWS console S3 service to
68
68
// see bucket object URL to get the URL structure
69
69
PHOTO_URL_TEMPLATE : process . env . PHOTO_URL_TEMPLATE || 'https://topcoder-dev-media.s3.us-east-1.amazonaws.com/member/profile/<key>' ,
70
-
70
+
71
71
// verify token expiration in minutes
72
72
VERIFY_TOKEN_EXPIRATION : process . env . VERIFY_TOKEN_EXPIRATION || 60 ,
73
73
@@ -84,33 +84,32 @@ module.exports = {
84
84
READ : process . env . SCOPE_MEMBERS_READ || 'read:user_profiles' ,
85
85
UPDATE : process . env . SCOPE_MEMBERS_UPDATE || 'update:user_profiles' ,
86
86
DELETE : process . env . SCOPE_MEMBERS_DELETE || 'delete:user_profiles' ,
87
- ALL : process . env . SCOPE_MEMBERS_ALL || 'all:user_profiles' ,
87
+ ALL : process . env . SCOPE_MEMBERS_ALL || 'all:user_profiles'
88
88
}
89
89
} ,
90
-
90
+
91
91
// Member identifiable info fields, only admin, M2M, or member himself can get these fields
92
- MEMBER_SECURE_FIELDS : process . env . MEMBER_SECURE_FIELDS
93
- ? process . env . MEMBER_SECURE_FIELDS . split ( ',' )
92
+ MEMBER_SECURE_FIELDS : process . env . MEMBER_SECURE_FIELDS
93
+ ? process . env . MEMBER_SECURE_FIELDS . split ( ',' )
94
94
: [ 'firstName' , 'lastName' , 'email' , 'addresses' , 'createdBy' , 'updatedBy' ] ,
95
95
96
96
// Member traits identifiable info fields, only admin, M2M, or member himself can fetch these fields
97
- MEMBER_TRAIT_SECURE_FIELDS : process . env . MEMBER_TRAIT_SECURE_FIELDS
98
- ? process . env . MEMBER_TRAIT_SECURE_FIELDS . split ( ',' )
97
+ MEMBER_TRAIT_SECURE_FIELDS : process . env . MEMBER_TRAIT_SECURE_FIELDS
98
+ ? process . env . MEMBER_TRAIT_SECURE_FIELDS . split ( ',' )
99
99
: [ 'createdBy' , 'updatedBy' ] ,
100
100
101
101
// Misc identifiable info fields, only admin, M2M, or member himself can fetch these fields
102
- MISC_SECURE_FIELDS : process . env . MISC_SECURE_FIELDS
103
- ? process . env . MISC_SECURE_FIELDS . split ( ',' )
102
+ MISC_SECURE_FIELDS : process . env . MISC_SECURE_FIELDS
103
+ ? process . env . MISC_SECURE_FIELDS . split ( ',' )
104
104
: [ 'createdBy' , 'updatedBy' ] ,
105
-
105
+
106
106
// Member Search identifiable info fields, only admin, M2M, or member himself can fetch these fields
107
- SEARCH_SECURE_FIELDS : process . env . SEARCH_SECURE_FIELDS
108
- ? process . env . SEARCH_SECURE_FIELDS . split ( ',' )
109
- : [ 'firstName' , 'lastName' , 'email' , 'addresses' , 'createdBy' , 'updatedBy' ] ,
110
-
107
+ SEARCH_SECURE_FIELDS : process . env . SEARCH_SECURE_FIELDS
108
+ ? process . env . SEARCH_SECURE_FIELDS . split ( ',' )
109
+ : [ 'firstName' , 'lastName' , 'email' , 'addresses' , 'createdBy' , 'updatedBy' ] ,
110
+
111
111
// Member Statistics identifiable info fields, only admin, M2M, or member himself can fetch these fields
112
112
STATISTICS_SECURE_FIELDS : process . env . STATISTICS_SECURE_FIELDS
113
113
? process . env . STATISTICS_SECURE_FIELDS . split ( ',' )
114
114
: [ 'createdBy' , 'updatedBy' ]
115
-
116
115
}
0 commit comments