Skip to content

Commit

Permalink
🚀 Merge pull request #17 from local-mood/fix/14-env-to-jasypt
Browse files Browse the repository at this point in the history
Fix: 보안 요소 관리 방식 통일
  • Loading branch information
gmkim20713 authored Dec 20, 2023
2 parents 908515e + f5195f3 commit 4d267a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
@Component
@Transactional(readOnly = true)
@Slf4j
@PropertySource("classpath:application.yml")
public class JwtTokenProvider {

private static final String AUTHORITIES_KEY = "role";
Expand Down
16 changes: 5 additions & 11 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,17 @@ spring:
profiles:
include: secret

jwt:
token:
secret: ${jwt.token.secret}
access-token-validity-in-seconds: ${jwt.token.access-token-validity-in-seconds}
refresh-token-validity-in-seconds: ${jwt.token.refresh-token-validity-in-seconds}

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${db.url}
username: ${db.username}
password: ${db.password}
url: ENC(aaX0j72mYzWkdVKfmPSv5K3RI0oVxwToz7mqL8Y8Dv2+8iqO7YaSFVvIl+fuaZKYbxN7wd6zBE0XvbXa8fSBmufq2aRVHVRX+Y71TnkCeOY81CyS1cZX4g==)
username: ENC(qOgX3PNBqpY45OYhqZFcoQ==)
password: ENC(Zg96EiJQDju2pWAq/nC5vwapLPZL4WLQ)

data:
redis:
host: ${redis.host}
host: ENC(EIZI2FGl7luftV7JAzeyjQ==)
port: 6379
password: root1234
password: ENC(bSF1EdS4uTZc49wWhYhICDcugXrrIhgV)

jpa:
database: mysql
Expand Down

0 comments on commit 4d267a5

Please sign in to comment.