mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-04 17:14:21 +00:00
fix(ap_scheduler): 添加Redis密码配置以增强安全性
在RedisJobStore配置中添加了REDIS_PASSWORD设置,以确保与Redis服务器的安全连接
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user