fix:redis增加密码配置
This commit is contained in:
3
.env
3
.env
@@ -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
|
||||
@@ -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:'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user