Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: application.yml 설정 변경 #84

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ spring:
activate:
on-profile: prod
datasource:
url: jdbc:mysql://db-p93qe.vpc-cdb.ntruss.com:3306/nutridiary
username: koo995
password: koo995**
url: ${MYSQL_URL}
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
sql:
init:
Expand Down Expand Up @@ -90,6 +90,7 @@ spring:
init:
mode: always
schema-locations: classpath:db/schema.sql
# data-locations: optional:classpath:db/data.sql

logging:
level:
Expand All @@ -103,3 +104,19 @@ spring:
config:
activate:
on-profile: common

datasource:
hikari:
maximum-pool-size: 10 # 커넥션 풀의 최대 크기 설정
max-lifetime: 55000 # 커넥션 최대 생존 시간 설정 (ms) 55초
connection-timeout: 30000 # pool 에서 커넥션을 받기위해 대기하는 시간 (ms)
data-source-properties:
wait_timeout: 60
net_read_timeout: 60

cloud:
aws:
s3:
endpoint: ${S3_END_POINT}
bucketName: ${S3_BUCKET_NAME}
regionName: ${AWS_REGION_NAME}
Loading