Skip to content

Commit

Permalink
API Server CI/CD 환경 구축 (#26)
Browse files Browse the repository at this point in the history
* [Feat]: Spring actuator 적용

health check를 위한 API 경로 허용

Related to: #25

* [Feat]: Spring actuator yml 변경

Related to: #25
  • Loading branch information
dev-Crayon authored Dec 5, 2024
1 parent 7dca806 commit 43b16b6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ subprojects {
// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'

// Actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'

// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
16 changes: 16 additions & 0 deletions module-api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ jwt:
refresh-token:
expiration-time: test

management:
server:
port: 0000
endpoints:
enabled-by-default: false
jmx:
exposure:
exclude: test
web:
exposure:
include: test
base-path: /test
endpoint:
health:
enabled: true

kakao:
clientId: test
redirectUri: test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class SecurityConfig {
private static final String[] AUTH_WHITELIST = {
"/user/social-signup",
"/user/social-login",
"/secret/info/health"
};

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class CustomJwtAuthenticationFilter extends OncePerRequestFilter {
private final JwtTokenManager jwtTokenManager;
private static final List<String> AUTH_WHITELIST = List.of(
"/user/social-signup",
"/user/social-login"
"/user/social-login",
"/secret/info/health"
);

@Override
Expand Down

0 comments on commit 43b16b6

Please sign in to comment.