Skip to content

Commit 399d8d2

Browse files
Merge pull request #264 from Juinjang/dev
[deploy] dev > prod
2 parents db9cea0 + 49a9e5d commit 399d8d2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dependencies {
3939
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
4040
implementation 'org.springframework.boot:spring-boot-starter-validation'
4141
implementation 'org.springframework.boot:spring-boot-starter-security'
42+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
4243

4344
//
4445
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' // 4.1.0
@@ -75,6 +76,8 @@ dependencies {
7576

7677
implementation 'commons-codec:commons-codec:1.16.0' // Base64 인코딩을 위한 의존성
7778

79+
// prometheus
80+
implementation 'io.micrometer:micrometer-registry-prometheus'
7881
}
7982

8083
tasks.named('test') {

src/main/java/umc/th/juinjang/config/SecurityConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public WebSecurityCustomizer webSecurityCustomizer(){
4444
return web -> web.ignoring()
4545
.requestMatchers("/swagger-ui/**", "/swagger/**", "/swagger-resources/**", "/swagger-ui.html", "/test",
4646
"/configuration/ui", "/v3/api-docs/**", "/h2-console/**", "/api/auth/regenerate-token",
47-
"/api/auth/kakao/**", "/api/auth/apple/**");
47+
"/api/auth/kakao/**", "/api/auth/apple/**", "/actuator/prometheus");
4848
}
4949
else {
50-
return web -> web.ignoring()
50+
return web -> web.ignoring()
5151
.requestMatchers("/h2-console/**", "/api/auth/regenerate-token",
52-
"/api/auth/kakao/**", "/api/auth/apple/**" );
52+
"/api/auth/kakao/**", "/api/auth/apple/**", "/actuator/prometheus");
5353
}
5454

5555
}
@@ -76,7 +76,7 @@ protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7676
AntPathRequestMatcher.antMatcher("/api/auth/**")
7777
).authenticated()
7878
.requestMatchers(
79-
AntPathRequestMatcher.antMatcher("/h2-console/**")
79+
AntPathRequestMatcher.antMatcher("/h2-console/**")
8080
).permitAll()
8181

8282
.anyRequest().authenticated()

0 commit comments

Comments
 (0)