diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f277f34..f158709 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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: @@ -90,6 +90,7 @@ spring: init: mode: always schema-locations: classpath:db/schema.sql +# data-locations: optional:classpath:db/data.sql logging: level: @@ -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}