Skip to content

Commit

Permalink
fix(contents): fix redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoSkorJjj committed Apr 23, 2024
1 parent cd3fa48 commit b80fa4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/simple/contents/.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GRPC_PORT=50051
DB_NAME=esd-db
DB_USERNAME=esd-user
DB_PASSWORD=esd-password
CACHE_SSL=false
CACHE_HOST=user-redis
CACHE_PORT=6379
CACHE_USERNAME=default
Expand Down
2 changes: 1 addition & 1 deletion backend/simple/contents/src/connection/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def connect(self) -> None:
port=self._port,
username=os.getenv("CACHE_USERNAME"),
password=os.getenv("CACHE_PASSWORD"),
ssl=os.getenv("ENVIRONMENT_MODE") == "production"
ssl=os.getenv("CACHE_SSL") == "true"
)
logging.debug(f"Cache connected at {self._host}:{self._port}")

Expand Down

0 comments on commit b80fa4b

Please sign in to comment.