Skip to content

Commit

Permalink
Merge pull request #217 from Kernel360/lee
Browse files Browse the repository at this point in the history
[#216] 로그 연동 파일
  • Loading branch information
km2535 authored Aug 30, 2024
2 parents 1b97430 + 3b7f437 commit e4e32cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'

implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation group: 'com.google.cloud', name: 'spring-cloud-gcp-starter-logging', version: '5.4.3'

implementation 'io.github.cdimascio:dotenv-java:2.3.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'org.json:json:20231013'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ protected SecurityFilterChain configure(HttpSecurity httpSecurity) throws Except
.requestMatchers("/users/banned/me").hasRole("BAN_USER")
.requestMatchers("/api/admin/user/all").hasRole("ADMIN_USER")
.requestMatchers("/api/admin/me").hasRole("ADMIN_USER")
.requestMatchers("/actuator/**").hasRole("ADMIN_USER")
.anyRequest().authenticated())
.oauth2Login(oauth2 -> oauth2
.authorizationEndpoint(endpoint -> endpoint.baseUri("/oauth2/authorization/**"))
Expand Down
7 changes: 5 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spring:
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
show-sql: true

security:
oauth2:
client:
Expand Down Expand Up @@ -47,7 +46,11 @@ spring:
token-uri: https://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id

cloud:
gcp:
project-id: inbound-stage-433103-i9
logging:
enabled: true
api:
voice:
score : ${API_VOICE_TO_SCORE}
Expand Down

0 comments on commit e4e32cf

Please sign in to comment.