Skip to content

Commit

Permalink
config: db 접속 정보를 환경변수로 주입 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaesung authored Aug 24, 2023
1 parent 3dcb2e7 commit cc8934b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ out/

### VS Code ###
.vscode/

### env ###
*.env
6 changes: 3 additions & 3 deletions nplusone-domain/src/main/resources/application-production.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
datasource:
url: ENC(rBv+/Lj946yHgcp0gXqVwAMjaJRPpgfK+Au0/CFGsR7/Bjjgh2EjdEhR9Sv+rnruwBxPq4nBRvdI0j1lF7528otQn+ODhrhtK18+9LLPogzd/Nei6pG3neyBqWXujO4o4y/UeZLLEQs7M72Xzd1LDyU4GQqSLTJ/sGMzPFoUsUmPZk/yqWDOaUtTPVqK4Vvn)
username: ENC(fhe3sYw0YJQuDTIE/61OZ2+sSDa4GZzLDnc7ODRcTMuxfIgMrWN3s+4gXsL92XtZ)
password: ENC(tSP43W3E4swvM1POYN6Y0hJ0kffm4TwqC/ek1jNT8WBTiC9Um5E/u/FRIAAruHKK)
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_SCHEMA}?serverTimezone=Asia/Seoul
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: update

0 comments on commit cc8934b

Please sign in to comment.