|
|
@@ -6,13 +6,13 @@ import os
|
|
|
|
|
|
# Redis 配置 - 支持环境变量
|
|
|
REDIS_CONFIG = {
|
|
|
- "host": os.getenv("REDIS_HOST", "localhost"),
|
|
|
+ "host": os.getenv("REDIS_HOST", "r-t4n023zec9wyjeer0spd.redis.singapore.rds.aliyuncs.com"),
|
|
|
"port": int(os.getenv("REDIS_PORT", 6379)),
|
|
|
- "db": int(os.getenv("REDIS_DB", 0)),
|
|
|
- "password": os.getenv("REDIS_PASSWORD", None)
|
|
|
+ "db": int(os.getenv("REDIS_DB", 15)),
|
|
|
+ "username": os.getenv("REDIS_USERNAME", "denet_crawler"),
|
|
|
+ "password": os.getenv("REDIS_PASSWORD", "denet_crawler2023")
|
|
|
}
|
|
|
|
|
|
-
|
|
|
# 双任务独立配置
|
|
|
TASKS_CONFIG = {
|
|
|
# 搜索 Cookie 任务
|