Skip to content

Commit

Permalink
chore: 환경변수 주입 방식 변경
Browse files Browse the repository at this point in the history
related issue #453
  • Loading branch information
jun02160 committed Nov 17, 2024
1 parent 8bbca33 commit 88d102a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.val;
import org.sopt.makers.internal.controller.filter.JwtAuthenticationFilter;
import org.sopt.makers.internal.controller.filter.JwtExceptionFilter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
Expand All @@ -23,12 +23,13 @@ public class SecurityConfig {

private final JwtAuthenticationFilter jwtAuthenticationFilter;
private final JwtExceptionFilter jwtExceptionFilter;
private final WebEndpointProperties webEndpointProperties;

@Value("${management.endpoints.web.base-path}")
private String actuatorEndpoint;

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
String actuatorEndpoint = webEndpointProperties.getBasePath();

return http.antMatcher("/**")
.httpBasic().disable()
.formLogin().disable()
Expand Down
7 changes: 1 addition & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ push-notification:
action: test
x-api-key: test
service: test

crew:
server-url: test

Expand All @@ -112,8 +112,3 @@ gabia:
sms-id: test
api-key: test
send-number: test

management:
endpoints:
web:
base-path: test
5 changes: 0 additions & 5 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,3 @@ gabia:
sms-id: test
api-key: test
send-number: test

management:
endpoints:
web:
base-path: test

0 comments on commit 88d102a

Please sign in to comment.