We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
application specific: add more health checks
See: https://progressivecoder.com/nestjs-health-check-terminus/
() =>
this.http.pingCheck(
'Basic Check',
http://localhost:${this.configService.get('server.port')},
http://localhost:${this.configService.get('server.port')}
),
flox/backend/src/flox/modules/healthcheck/healthcheck.controller.ts
Line 25 in d1bce8e
import { Controller, Get } from '@nestjs/common'; import { Public } from '../auth/authentication.decorator'; import { HealthCheck, HealthCheckService, HttpHealthIndicator, TypeOrmHealthIndicator, } from '@nestjs/terminus'; import { ConfigService } from '@nestjs/config'; @Controller('healthcheck') export class HealthcheckController { constructor( private readonly configService: ConfigService, private readonly healthcheckService: HealthCheckService, private readonly http: HttpHealthIndicator, private readonly database: TypeOrmHealthIndicator, ) {} @Public() @HealthCheck() @Get() async checkHealth(): Promise<any> { return this.healthcheckService.check([ // TODO application specific: add more health checks // See: https://progressivecoder.com/nestjs-health-check-terminus/ // () => // this.http.pingCheck( // 'Basic Check', // `http://localhost:${this.configService.get('server.port')}`, // ), // Database connectivity () => this.database.pingCheck(this.configService.get('database.database')), ]); } }
f32efda6a9611bfc61ca4447216689f4abd4d544
The text was updated successfully, but these errors were encountered:
No branches or pull requests
application specific: add more health checks
See: https://progressivecoder.com/nestjs-health-check-terminus/
() =>
this.http.pingCheck(
'Basic Check',
http://localhost:${this.configService.get('server.port')}
,),
flox/backend/src/flox/modules/healthcheck/healthcheck.controller.ts
Line 25 in d1bce8e
f32efda6a9611bfc61ca4447216689f4abd4d544
The text was updated successfully, but these errors were encountered: