Skip to content

Commit

Permalink
application yaml을 정의한다
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeongkyun committed Oct 2, 2023
1 parent ba67612 commit 7142ba8
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
server:
port: 8080

database:
url: ${DB_URL}
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${DB_URL:jdbc:mysql://localhost:3306/test?serverTimezone=UTC&characterEncoding=UTF-8}
username: ${DB_USER_NAME:admin}
password: ${DB_USER_PASSWORD:admin}
jpa:
database-platform: org.hibernate.dialect.MySQL8Dialect
open-in-view: false
show-sql: true
hibernate:
format_sql: true
ddl-auto: update
security:
oauth2:
client:
provider:
kakao:
authorization-uri: https://kauth.kakao.com/oauth/authorize
token-uri: https://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id
registration:
kakao:
client-id: ${KAKAO_CLIENT_ID}
client-secret: ${KAKAO_CLIENT_SECRET}
client-authentication-method: client_secret_post
redirect-uri: http://localhost:8080/login/oauth2/code/kakao
authorization-grant-type: authorization_code
client-name: kakao
scope:
- profile
- account_email

0 comments on commit 7142ba8

Please sign in to comment.