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

Add healthcheck #192

Merged
merged 3 commits into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update configs
  • Loading branch information
ThomasKranitsas committed Oct 1, 2019
commit 483ac7e42642c9f45b4e2a0d33896065fe198e41
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ npm run lint
- POST /issues - create an issue to Gitlab/Github
- POST /issues/recreate - recreate an issue DB and its challenge

- GET /health - gets the app health

## Configuration

please see [configuration.md](configuration.md).
Expand Down
1 change: 1 addition & 0 deletions configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following config parameters are supported, they are defined in `src/config.j
|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 |
|AWS_REGION | The Amazon certificate region to use when connecting. Use local dynamodb you can set fake value|FAKE_REGION |
|IS_LOCAL | Use Amazon DynamoDB Local or server. |true |
|AWS_CONNECTION_TIMEOUT | The timeout used to check if the app is healthy. |10000 |
|TC_LOGIN_URL | TC login url | |
|TC_USER_PROFILE_URL | TC user profile url | |

Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
AWS_SECRET_ACCESS_KEY: process.env.AWS_SECRET_ACCESS_KEY,
AWS_REGION: process.env.AWS_REGION,
IS_LOCAL: process.env.IS_LOCAL,
TIMEOUT: process.env.TIMEOUT || 10000, // eslint-disable-line no-magic-numbers
TIMEOUT: process.env.AWS_CONNECTION_TIMEOUT || 10000, // eslint-disable-line no-magic-numbers
},
TOPCODER_VALUES: {
dev: {
Expand Down