Skip to content

Commit

Permalink
CHORE:: Add enviorment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo1999 committed May 16, 2024
1 parent f537e1c commit 98bb6bd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
21 changes: 19 additions & 2 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,36 @@ spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
sql:
init:
mode: always
schema-locations: classpath:/db/data.sql
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/Rework?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: root
password:
jpa:
hibernate:
ddl-auto: create
ddl-auto: update
properties:
hibernate:
show_sql: true
format_sql: false
default_batch_fetch_size: 1000
defer-datasource-initialization: true
show-sql: true
mail:
host: smtp.gmail.com
port: 587
username: ${email_username}
password: ${email_password}
properties:
mail:
smtp:
auth: true
starttls:
enable: true
servlet:
encoding:
charset: UTF-8
Expand All @@ -28,7 +43,9 @@ spring:
port: 6379
host: localhost


discord:
webhook:
url: ${discord_webhook_url}
jwt:
secret-key: mobile_app_1234567890

15 changes: 14 additions & 1 deletion src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ spring:
redis:
host: localhost
port: 6379

mail:
host: smtp.gmail.com
port: 587
username: test_username
password: test_password
properties:
mail:
smtp:
auth: true
starttls:
enable: true
discord:
webhook:
url: testDiscordWebhookUrl
jwt:
secret-key: testCodeJwtToken

0 comments on commit 98bb6bd

Please sign in to comment.