fix(ap_scheduler): 添加Redis密码配置以增强安全性

在RedisJobStore配置中添加了REDIS_PASSWORD设置,以确保与Redis服务器的安全连接
This commit is contained in:
zhangtao
2025-04-23 21:15:36 +08:00
parent 101b1c4e2d
commit 948aaa8848
+1
View File
@@ -36,6 +36,7 @@ job_stores = {
'default': MemoryJobStore(), 'default': MemoryJobStore(),
'redis': RedisJobStore( 'redis': RedisJobStore(
**dict( **dict(
password=settings.REDIS_PASSWORD,
host=settings.REDIS_HOST, host=settings.REDIS_HOST,
port=settings.REDIS_PORT, port=settings.REDIS_PORT,
db=settings.REDIS_DB_NAME, db=settings.REDIS_DB_NAME,