From cb37934db4d500246151bb0678e699db5b1b7605 Mon Sep 17 00:00:00 2001 From: wuseong Date: Tue, 30 Jan 2024 22:01:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B0=9C=EB=B0=9C=20=EC=9D=B8=ED=94=84?= =?UTF-8?q?=EB=9D=BC=20=ED=99=98=EA=B2=BD=20=EC=84=A4=EC=A0=95=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 28 ++++++++++++++++++++++++++ src/main/resources/application.yml | 22 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/application.yml diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..dd69cae --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,28 @@ +spring: + config: + activate: + on-profile: "dev" + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://everywaredb.clvf8hluntcy.ap-northeast-2.rds.amazonaws.com:3306/onnoff?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 + username: ${DEV_DB_USERNAME} + password: ${DEV_DB_PASSWORD} + jpa: + hibernate: + ddl-auto: update + properties: + hibernate: + format_sql: true + show_sql: true +cloud: + aws: + s3: + bucket: ${S3_BUCKET} + credentials: + access-key: ${S3_ACCESS_KEY} + secret-key: ${S3_SECRET_KEY} + region: + static: ap-northeast-2 + stack: + auto: false + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..c4e98b6 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,22 @@ +spring: + profiles: + active: dev + jwt: + secret: ${JWT_SECRET} +logging: + level: + com.onnoff.onnoff.auth.feignClient: DEBUG +apple: + redirect-uri: ${APPLE_REDIRECT_URI} + iss: https://appleid.apple.com + client-id: ${APPLE_CLIENT_ID} # = App ID + team-id: ${APPLE_TEAM_ID} # = ID prefix + key: + id: ${APPLE_KEY_ID} + path: classpath:/apple/AuthKey_${APPLE_KEY_ID}.p8 # 나중에 src/main/resources/apple/에 키 파일 저장, 그냥 문자열로 가져와도 될 것 같기도 +kakao: + redirect-uri: ${KAKAO_REDIRECT_URI} + iss: https://kauth.kakao.com + client-id: ${KAKAO_CLIENT_ID} + admin-key: ${KAKAO_ADMIN_KEY} +