Skip to content

Commit 848ec08

Browse files
authored
Merge pull request #151 from prgrms-web-devcourse-final-project/deploy-1
work
2 parents 39145bc + c046923 commit 848ec08

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies {
3838

3939
// 스프링부트 추가 기능
4040
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0")
41+
implementation("org.springframework.boot:spring-boot-starter-actuator")
4142

4243
// 롬복
4344
compileOnly("org.projectlombok:lombok")

src/main/resources/application.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
server:
2+
port: 8080
3+
forward-headers-strategy: native
14
spring:
25
application:
36
name: backend
@@ -33,11 +36,20 @@ spring:
3336
redis:
3437
host: localhost
3538
port: 6379
36-
3739
pg:
3840
toss:
3941
clientKey: ${PG_TOSS_CLIENT_KEY}
4042
secretKey: ${PG_TOSS_SECRET_KEY}
41-
4243
springdoc:
43-
default-produces-media-type: application/json;charset=UTF-8
44+
default-produces-media-type: application/json;charset=UTF-8
45+
management:
46+
endpoints:
47+
web:
48+
base-path: /actuator # 기본값이지만 명시
49+
exposure:
50+
include: health,info # 필요시 metrics 등 추가
51+
endpoint:
52+
health:
53+
probes:
54+
enabled: true # /actuator/health/{liveness,readiness} 활성화
55+
show-details: never # 프로브 용도면 never 권장(민감정보 차단)

0 commit comments

Comments
 (0)