Skip to content

Conversation

@KOO612
Copy link
Collaborator

@KOO612 KOO612 commented Dec 13, 2025

변경사항

  • @nestjs/terminus 모듈을 활용한 HTTP 헬스 체크 컨트롤러 구현

  • HttpHealthIndicator.pingCheck()를 사용한 자체 서버 상태 확인

  • 순환 참조 문제 방지를 위한 /ping 전용 헬스 엔드포인트 추가

@KOO612 KOO612 requested a review from f-lab-namu December 13, 2025 14:44
@KOO612 KOO612 self-assigned this Dec 13, 2025
@HealthCheck()
check() {
return this.health.check([
() => this.http.pingCheck('server-check', 'http://localhost:3000/ping'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://localhost:3000/ping 이 부분은 환경별로 달라져야 할 것 같아요. static string 으로 code 에 넣는 것 보다 env 나 config 를 활용해서 따로 빼는게 좋겠어요.

@sonarqubecloud
Copy link

);
this.healthCheckUrl = this.configService.get<string>(
'HEALTH_CHECK_URL',
'http://localhost:3000/ping',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분의 경우 로컬, 개발, 운영 환경 별로 url 이 다를테니 설정값 주입 형태로 처리되면 좋을 것 같아요.

@KOO612 KOO612 merged commit ef1d7e6 into main Dec 26, 2025
2 checks passed
@KOO612 KOO612 deleted the feature/1 branch December 26, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants