Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 984cb65

Browse files
Update configs
1 parent d410551 commit 984cb65

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ npm run lint
5151
- POST /issues - create an issue to Gitlab/Github
5252
- POST /issues/recreate - recreate an issue DB and its challenge
5353

54+
- GET /health - gets the app health
55+
5456
## Configuration
5557

5658
please see [configuration.md](configuration.md).

configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The following config parameters are supported, they are defined in `src/config.j
3232
|AWS_SECRET_ACCESS_KEY | The Amazon certificate access key to use when connecting. Use local dynamodb you can set fake value|FAKE_SECRET_ACCESS_KEY |
3333
|AWS_REGION | The Amazon certificate region to use when connecting. Use local dynamodb you can set fake value|FAKE_REGION |
3434
|IS_LOCAL | Use Amazon DynamoDB Local or server. |true |
35+
|AWS_CONNECTION_TIMEOUT | The timeout used to check if the app is healthy. |10000 |
3536
|TC_LOGIN_URL | TC login url | |
3637
|TC_USER_PROFILE_URL | TC user profile url | |
3738

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = {
5555
AWS_SECRET_ACCESS_KEY: process.env.AWS_SECRET_ACCESS_KEY,
5656
AWS_REGION: process.env.AWS_REGION,
5757
IS_LOCAL: process.env.IS_LOCAL,
58-
TIMEOUT: process.env.TIMEOUT || 10000, // eslint-disable-line no-magic-numbers
58+
TIMEOUT: process.env.AWS_CONNECTION_TIMEOUT || 10000, // eslint-disable-line no-magic-numbers
5959
},
6060
TOPCODER_VALUES: {
6161
dev: {

0 commit comments

Comments
 (0)