Skip to content

Commit

Permalink
feat: Redis 환경변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi committed Oct 6, 2024
1 parent 0f702e4 commit 8a9d1ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/leets/X/global/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
@RequiredArgsConstructor
public class RedisConfig {

@Value("${spring.data.redis.host}")
@Value("${REDIS_HOST}")
private String redisHost;

@Value("${spring.data.redis.port}")
@Value("${REDIS_PORT}")
private int redisPort;

@Bean
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spring:
dialect: org.hibernate.dialect.MySQLDialect
hibernate:
ddl-auto: update
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}


x:
jwt:
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spring:
dialect: org.hibernate.dialect.MySQLDialect
hibernate:
ddl-auto: update
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}


x:
jwt:
Expand All @@ -21,3 +27,4 @@ x:
refresh:
expiration: ${REFRESH_EXP}
header: ${REFRESH_HEAD}

0 comments on commit 8a9d1ba

Please sign in to comment.