fix:redis增加密码配置

This commit is contained in:
lei_y601
2025-07-10 17:18:14 +08:00
parent 16d513be6f
commit 1da5429243
2 changed files with 3 additions and 2 deletions

3
.env
View File

@@ -38,4 +38,5 @@ DEFAULT_PAGESIZE = 30
DEFAULT_QUERY_SIZE = 30
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PORT=6379
REDIS_PASSWORD=xx

View File

@@ -12,7 +12,7 @@ pool = redis.ConnectionPool(
max_connections=20, # 最大连接数
decode_responses=True,
encoding='utf-8',
password=config('REDIS_PASSWORD', cast=str, default=''),
)
default_redis_covers_id_prefix = 'yj_room:agent:'