From e8c9e1b26e6d48a602e2a0f9207daf7789c416e4 Mon Sep 17 00:00:00 2001 From: ahah525 Date: Thu, 16 Mar 2023 00:42:25 +0900 Subject: [PATCH] =?UTF-8?q?#39=20feat:=20=EC=9A=B4=EC=98=81=EC=9A=A9=20yml?= =?UTF-8?q?(application-prod.yml)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playwithme/src/main/resources/application-dev.yml | 8 +++++++- playwithme/src/main/resources/application-prod.yml | 8 ++++++++ playwithme/src/main/resources/application.yml | 6 +----- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 playwithme/src/main/resources/application-prod.yml diff --git a/playwithme/src/main/resources/application-dev.yml b/playwithme/src/main/resources/application-dev.yml index 9d41648..c7c80e8 100644 --- a/playwithme/src/main/resources/application-dev.yml +++ b/playwithme/src/main/resources/application-dev.yml @@ -1,4 +1,10 @@ -# 개발용 +# 개발 +spring: + datasource: + url: jdbc:mariadb://localhost:3306/playwithme?useUnicode=true&characterEncoding=utf8&serverTimeZone=Asia/Seoul&allowPublicKeyRetrieval=true&useSSL=false + username: root + password: '0114' + oauth2: kakao: login: diff --git a/playwithme/src/main/resources/application-prod.yml b/playwithme/src/main/resources/application-prod.yml new file mode 100644 index 0000000..2480af2 --- /dev/null +++ b/playwithme/src/main/resources/application-prod.yml @@ -0,0 +1,8 @@ +# 운영 +oauth2: + kakao: + login: + redirect-uri: "http://playwithme.site/member/login/oauth/kakao/callback" + logout: + redirect-uri: "http://playwithme.site/member/logout/oauth/kakao" + diff --git a/playwithme/src/main/resources/application.yml b/playwithme/src/main/resources/application.yml index c6d073d..48f4468 100644 --- a/playwithme/src/main/resources/application.yml +++ b/playwithme/src/main/resources/application.yml @@ -1,4 +1,4 @@ -#Database +# 공통 spring: profiles: include: @@ -6,10 +6,6 @@ spring: active: dev # 기본 개발 모드 활성화 datasource: - url: jdbc:mariadb://localhost:3306/playwithme?useUnicode=true&characterEncoding=utf8&serverTimeZone=Asia/Seoul&allowPublicKeyRetrieval=true&useSSL=false - username: root - password: '0114' - driver-class-name: org.mariadb.jdbc.Driver jpa: