Skip to content

Commit

Permalink
feat: 개발 인프라 환경 설정파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-seong committed Jan 30, 2024
1 parent a506325 commit cb37934
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -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

22 changes: 22 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit cb37934

Please sign in to comment.