1.0.5 ⢠Published 5 years ago
healthz-module v1.0.5
Welcome to healthz-module š
NestJS health module based on Terminus
š Homepage
Install
npm install healthz-module --saveUsage
Add to your module next options:
HealthModule.register({
checkServices: {
mongodb: [
{
connectionName: '', // DB connection name
connectionUrl: '', // DB connection uri
},
{
connectionName: '', // DB connection name
connectionUrl: '' // DB connection uri
}
],
redis: [
{
connectionName: '', // Redis connection name
connectionUrl: '' // Redis connection uri
}
]
},
})where checkServices options is:
| Module options | Values | Required |
|---|---|---|
| mongodb | MongoDB options | no |
| redis | Redis options | no |
After that health check available on https://localhost/healthz
Run tests
npm run testAuthor
š¤ Yaroslav Kuznetsov y.kuznetsov@admitad.com
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
This README was generated with ā¤ļø by readme-md-generator