@@ -19,7 +19,7 @@ module.exports = {
19
19
GITHUB_CLIENT_SECRET : process . env . GITHUB_CLIENT_SECRET ,
20
20
GITLAB_CLIENT_ID : process . env . GITLAB_CLIENT_ID ,
21
21
GITLAB_CLIENT_SECRET : process . env . GITLAB_CLIENT_SECRET ,
22
-
22
+
23
23
// used as base to construct various URLs
24
24
WEBSITE : process . env . WEBSITE || 'http://topcoderx.topcoder-dev.com' ,
25
25
WEBSITE_SECURE : process . env . WEBSITE_SECURE || 'https://topcoderx.topcoder-dev.com' ,
@@ -61,99 +61,89 @@ module.exports = {
61
61
} ,
62
62
TOPCODER_VALUES : {
63
63
dev : {
64
- TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts-auth0.topcoder-dev.com' ,
65
- TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder-dev.com/v2/user/profile' ,
64
+ TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts-auth0.topcoder-dev.com/' ,
66
65
} ,
67
66
prod : {
68
- TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts-auth0.topcoder.com' ,
69
- TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder.com/v2/user/profile' ,
67
+ TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts.topcoder.com/member' ,
70
68
} ,
71
69
} ,
72
70
} ;
73
71
74
72
const frontendConfigs = {
75
- "local" :{
76
- "JWT_V3_NAME" :"v3jwt" ,
77
- "JWT_V2_NAME" :"tcjwt" ,
78
- "COOKIES_SECURE" :false ,
79
- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com" ,
80
- "TC_USER_PROFILE_URL" : "http://api.topcoder-dev.com/v2/user/profile" ,
81
- "API_URL" : "https://127.0.0.1:8443" ,
82
- "ADMIN_TOOL_URL" : "http://localhost:8080/api/v2" ,
83
- "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0.topcoder-dev.com" ,
84
- "DIRECT_URL_BASE" : "https://www.topcoder-dev/direct/projectOverview?formData.projectId=" ,
85
- "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
86
- "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
87
- "TOPCODER_URL" : "https://topcoder-dev.com" ,
88
- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
89
- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
73
+ "local" : {
74
+ "JWT_V3_NAME" : "v3jwt" ,
75
+ "JWT_V2_NAME" : "tcjwt" ,
76
+ "COOKIES_SECURE" : false ,
77
+ "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com/" ,
78
+ "API_URL" : "https://127.0.0.1:8443" ,
79
+ "ADMIN_TOOL_URL" : "http://localhost:8080/api/v2" ,
80
+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html" ,
81
+ "DIRECT_URL_BASE" : "https://www.topcoder-dev/direct/projectOverview?formData.projectId=" ,
82
+ "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
83
+ "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
84
+ "TOPCODER_URL" : "https://topcoder-dev.com" ,
85
+ "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
86
+ "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
90
87
} ,
91
- "heroku" :{
92
- "JWT_V3_NAME" :"v3jwt" ,
93
- "JWT_V2_NAME" :"tcjwt" ,
94
- "COOKIES_SECURE" :false ,
95
- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com" ,
96
- "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
97
- "API_URL" : "https://api.topcoder-dev.com" ,
98
- "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
99
- "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0.topcoder-dev.com" ,
100
- "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
101
- "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
102
- "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
103
- "TOPCODER_URL" : "https://topcoder-dev.com" ,
104
- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
105
- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
88
+ "heroku" : {
89
+ "JWT_V3_NAME" : "v3jwt" ,
90
+ "JWT_V2_NAME" : "tcjwt" ,
91
+ "COOKIES_SECURE" : false ,
92
+ "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com/" ,
93
+ "API_URL" : "https://api.topcoder-dev.com" ,
94
+ "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
95
+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html" ,
96
+ "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
97
+ "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
98
+ "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
99
+ "TOPCODER_URL" : "https://topcoder-dev.com" ,
100
+ "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
101
+ "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
106
102
} ,
107
- "dev" :{
108
- "JWT_V3_NAME" :"v3jwt" ,
109
- "JWT_V2_NAME" :"tcjwt" ,
110
- "COOKIES_SECURE" :false ,
111
- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com" ,
112
-
113
- // TODO: we can clean this conf, as no need https://github.com/topcoder-platform/topcoder-x-ui/issues/342
114
- "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
115
-
116
- "API_URL" : "https://api.topcoder-dev.com" ,
117
- "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
118
- "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0.topcoder-dev.com" ,
119
- "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
120
- "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
121
- "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
122
- "TOPCODER_URL" : "https://topcoder-dev.com" ,
123
- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
124
- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
103
+ "dev" : {
104
+ "JWT_V3_NAME" : "v3jwt" ,
105
+ "JWT_V2_NAME" : "tcjwt" ,
106
+ "COOKIES_SECURE" : false ,
107
+ "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com/" ,
108
+ "API_URL" : "https://api.topcoder-dev.com" ,
109
+ "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
110
+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html" ,
111
+ "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
112
+ "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
113
+ "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
114
+ "TOPCODER_URL" : "https://topcoder-dev.com" ,
115
+ "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
116
+ "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
125
117
} ,
126
- "qa" :{
127
- "JWT_V3_NAME" :"v3jwt" ,
128
- "JWT_V2_NAME" :"tcjwt" ,
129
- "COOKIES_SECURE" :false ,
130
- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com" ,
131
- "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
132
- "API_URL" : "https://api.topcoder-qa.com" ,
133
- "ADMIN_TOOL_URL" : "https://api.topcoder-qa.com/v2" ,
134
- "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0.topcoder-dev.com" ,
135
- "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
136
- "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
137
- "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
138
- "TOPCODER_URL" : "https://topcoder-dev.com" ,
139
- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
140
- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
118
+ "qa" : {
119
+ "JWT_V3_NAME" : "v3jwt" ,
120
+ "JWT_V2_NAME" : "tcjwt" ,
121
+ "COOKIES_SECURE" : false ,
122
+ "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com/" ,
123
+ "API_URL" : "https://api.topcoder-qa.com" ,
124
+ "ADMIN_TOOL_URL" : "https://api.topcoder-qa.com/v2" ,
125
+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-qa.com/connector.html" ,
126
+ "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
127
+ "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
128
+ "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
129
+ "TOPCODER_URL" : "https://topcoder-dev.com" ,
130
+ "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
131
+ "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
141
132
} ,
142
- "prod" :{
143
- "JWT_V3_NAME" :"v3jwt" ,
144
- "JWT_V2_NAME" :"tcjwt" ,
145
- "COOKIES_SECURE" :false ,
146
- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder.com" ,
147
- "TC_USER_PROFILE_URL" : "https://api.topcoder.com/v2/user/profile" ,
148
- "API_URL" : "https://api.topcoder.com" ,
149
- "ADMIN_TOOL_URL" : "https://api.topcoder.com/v2" ,
150
- "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0.topcoder.com" ,
151
- "DIRECT_URL_BASE" : "https://www.topcoder.com/direct/projectOverview?formData.projectId=" ,
152
- "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
153
- "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
154
- "TOPCODER_URL" : "https://topcoder-dev.com" ,
155
- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
156
- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
133
+ "prod" : {
134
+ "JWT_V3_NAME" : "v3jwt" ,
135
+ "JWT_V2_NAME" : "tcjwt" ,
136
+ "COOKIES_SECURE" : false ,
137
+ "TC_LOGIN_URL" : "https://accounts.topcoder.com/member" ,
138
+ "API_URL" : "https://api.topcoder.com" ,
139
+ "ADMIN_TOOL_URL" : "https://api.topcoder.com/v2" ,
140
+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder.com/connector.html" ,
141
+ "DIRECT_URL_BASE" : "https://www.topcoder.com/direct/projectOverview?formData.projectId=" ,
142
+ "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
143
+ "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
144
+ "TOPCODER_URL" : "https://topcoder-dev.com" ,
145
+ "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
146
+ "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
157
147
}
158
148
} ;
159
149
@@ -166,7 +156,6 @@ module.exports.frontendConfigs = {
166
156
JWT_V2_NAME : process . env . JWT_V2_NAME || frontendConfigs [ activeEnv ] . JWT_V2_NAME ,
167
157
COOKIES_SECURE : process . env . COOKIES_SECURE || frontendConfigs [ activeEnv ] . COOKIES_SECURE ,
168
158
TC_LOGIN_URL : process . env . TC_LOGIN_URL || frontendConfigs [ activeEnv ] . TC_LOGIN_URL ,
169
- TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || frontendConfigs [ activeEnv ] . TC_USER_PROFILE_URL ,
170
159
API_URL : process . env . API_URL || frontendConfigs [ activeEnv ] . API_URL ,
171
160
ADMIN_TOOL_URL : process . env . ADMIN_TOOL_URL || frontendConfigs [ activeEnv ] . ADMIN_TOOL_URL ,
172
161
ACCOUNTS_CONNECTOR_URL : process . env . ACCOUNTS_CONNECTOR_URL || frontendConfigs [ activeEnv ] . ACCOUNTS_CONNECTOR_URL ,
0 commit comments