Skip to content

Commit

Permalink
feat: dev, prod 프로파일에 프로메테우스 및 health, info 초기 설정 추가
Browse files Browse the repository at this point in the history
보안에 민감할 수 있는 부분은 환경변수로 분리하였다.

https://techblog.woowahan.com/9232/
  • Loading branch information
jxmen committed Sep 5, 2024
1 parent f08c909 commit 2dd8d4f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ logging:
hibernate:
SQL: DEBUG

# Security Actuator 안전하게 사용하기 - https://techblog.woowahan.com/9232/
management:
server:
port: ${MANAGEMENT_SERVER_PORT}
endpoints:
web:
exposure:
include: prometheus, health, info
base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH}
jmx:
exposure:
exclude: '*'
endpoint:
health:
enabled: true
info:
enabled: true
prometheus:
enabled: true

---
spring.config.activate.on-profile: prod

Expand All @@ -121,3 +141,23 @@ spring:

jwt:
secret: ${JWT_SECRET}

# Security Actuator 안전하게 사용하기 - https://techblog.woowahan.com/9232/
management:
server:
port: ${MANAGEMENT_SERVER_PORT}
endpoints:
web:
exposure:
include: prometheus, health, info
base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH}
jmx:
exposure:
exclude: '*'
endpoint:
health:
enabled: true
info:
enabled: true
prometheus:
enabled: true

0 comments on commit 2dd8d4f

Please sign in to comment.