Skip to content

Commit

Permalink
Chore: yml로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
saokiritoni authored Nov 4, 2024
1 parent 3bace83 commit cede28e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/main/java/dongguk/osori/resources/application.properties

This file was deleted.

50 changes: 50 additions & 0 deletions src/main/java/dongguk/osori/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}

jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true

session:
store-type: redis
timeout: 1800s

redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}

mail:
host: smtp.gmail.com
port: 587
username: ${SMTP_USERNAME}
password: ${SMTP_PASSWORD}
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
ssl:
trust: smtp.gmail.com
connectiontimeout: 5000
timeout: 5000
writetimeout: 5000

server:
servlet:
session:
cookie:
name: JSESSIONID
secure: false
http-only: true
timeout: 30m

0 comments on commit cede28e

Please sign in to comment.