Skip to content

Commit

Permalink
HOTFIX: 레디스 환경변수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Jan 7, 2025
1 parent e19b6cf commit 105d4f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/gachtaxi/global/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public class RedisConfig {

public static final String WILD_CARD = "*";

@Value("${redis.host}")
@Value("${redis.host:localhost}")
private String host;

@Value("${redis.port}")
@Value("${redis.port:6379}")
private int port;

@Value("${redis.password}")
@Value("${redis.password:}")
private String password;

@Value("${chat.topic}")
Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ spring:
hibernate:
ddl-auto: update
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}
mongodb:
uri: ${MONGODB_URI}

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

logging:
level:
org.springframework.messaging: debug
Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ spring:
hibernate:
ddl-auto: update
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}
mongodb:
uri: ${MONGODB_URI}

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

logging:
level:
org.springframework.messaging: debug
Expand Down

0 comments on commit 105d4f2

Please sign in to comment.