1.0.5 ā¢ Published 4 years ago
healthz-module v1.0.5
Welcome to healthz-module š
NestJS health module based on Terminus
š Homepage
Install
npm install healthz-module --save
Usage
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 test
Author
š¤ 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