Skip to content

Commit 82b8d5e

Browse files
authored
Merge pull request #46 from CommitField/feature/#6
chore : actuator ๊ถŒํ•œ ์ถ”๊ฐ€
2 parents 77c7c53 + 3437d3b commit 82b8d5e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

โ€Žsrc/main/java/cmf/commitField/global/security/SecurityConfig.java

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ public SecurityConfig(CustomOAuth2UserService customOAuth2UserService) {
2323

2424
@Bean
2525
protected SecurityFilterChain config(HttpSecurity http) throws Exception {
26+
// ๊ถŒํ•œ ์„ค์ •
27+
http
28+
.authorizeHttpRequests(auth -> auth
29+
.requestMatchers("/actuator/**").permitAll() // actuator ์—”๋“œํฌ์ธํŠธ ํ—ˆ์šฉ
30+
.anyRequest().authenticated() // ๊ทธ ์™ธ ๋ชจ๋“  ์š”์ฒญ์€ ์ธ์ฆ ํ•„์š”
31+
);
32+
2633
//๋กœ๊ทธ์ธ ๊ด€๋ จ ์„ค์ •
2734
http
2835
.oauth2Login(oauth2 -> oauth2

โ€Žsrc/main/resources/application-secret.yml.default

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ custom:
33
spring:
44
data:
55
redis:
6-
password: cmf123414
7-
key: cmf123414
6+
password: NEED_TO_INPUT
7+
key: NEED_TO_INPUT
88
spring:
99
security:
1010
oauth2:

0 commit comments

Comments
ย (0)