Skip to content

Commit cd0ea8c

Browse files
authored
Merge pull request #85 from prgrms-web-devcourse-final-project/chore/33-infra
refactor[yml] redis 자동 등록 방지
2 parents cbb1358 + 08cd9b5 commit cd0ea8c

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444

4545
steps:
4646
- uses: actions/checkout@v4
47-
4847
- name: Set up JDK 21
4948
uses: actions/setup-java@v4
5049
with:

backend/src/main/resources/application-prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
spring:
2+
autoconfigure:
3+
exclude:
24
datasource:
35
url: ${PROD_DATASOURCE_URL}
46
driver-class-name: ${PROD_DATASOURCE_DRIVER}

backend/src/main/resources/application.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
spring:
2+
autoconfigure:
3+
exclude:
4+
- org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
5+
- org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
26
config:
37
import: optional:file:.env[.properties]
48
application:
@@ -8,7 +12,6 @@ spring:
812
output:
913
ansi:
1014
enabled: always
11-
1215
jpa:
1316
show-sql: true
1417
hibernate:
@@ -59,6 +62,17 @@ logging:
5962
org.springframework: INFO
6063
org.hibernate: INFO
6164
com.ai.lawyer: DEBUG
65+
management:
66+
endpoints:
67+
web:
68+
base-path: /actuator # 기본값이지만 명시
69+
exposure:
70+
include: health,info # 필요시 metrics 등 추가
71+
endpoint:
72+
health:
73+
probes:
74+
enabled: true # /actuator/health/{liveness,readiness} 활성화
75+
show-details: never # 프로브 용도면 never 권장(민감정보 차단)
6276
custom:
6377
jwt:
6478
secretKey: ${CUSTOM_JWT_SECRET_KEY}

0 commit comments

Comments
 (0)