Files
nanocode/it_automation_enhanced/config/config.json
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

87 lines
2.5 KiB
JSON

{
"system": {
"name": "IT资讯自动化增强版-国内源",
"version": "2.0.0",
"description": "基于国内技术网站的资讯自动化系统"
},
"paths": {
"work_dir": "/home/ubuntu/nanocode/it_automation_enhanced",
"database_path": "/home/ubuntu/nanocode/it_automation_enhanced/data/articles.db",
"log_dir": "/home/ubuntu/nanocode/it_automation_enhanced/logs",
"output_dir": "/home/ubuntu/nanocode/it_automation_enhanced/output",
"xhs_integration_dir": "/home/ubuntu/nanocode/it_automation_enhanced/xhs_integration"
},
"crawler": {
"min_word_count": 500,
"max_days_old": 7,
"request_delay": 3,
"timeout": 30,
"max_retries": 3,
"user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36"
]
},
"websites": [
{
"name": "掘金",
"url": "https://juejin.cn",
"category": "tech",
"enabled": true,
"priority": 1
},
{
"name": "OSChina",
"url": "https://www.oschina.net/blog",
"category": "tech",
"enabled": true,
"priority": 2
},
{
"name": "知乎热榜",
"url": "https://www.zhihu.com/hot",
"category": "tech",
"enabled": true,
"priority": 3
}
],
"processing": {
"enable_translation": true,
"enable_humanizer": true,
"enable_xhs_conversion": true,
"max_content_length": 10000,
"min_content_length": 500,
"enable_summarization": true,
"translation_provider": "auto",
"summarization_provider": "auto",
"_comment": "使用'auto'自动从nanobot主配置读取模型设置,当前使用Moonshot"
},
"email": {
"enable_daily_digest": true,
"smtp_host": "smtp.163.com",
"smtp_port": 465,
"username": "wensincai@163.com",
"password": "AXqLZkyAZqfjQSsM",
"from_email": "wensincai@163.com",
"to_email": "2927951@qq.com",
"daily_digest_time": "17:00",
"email_template": "daily_digest_template.html"
},
"xiaohongshu": {
"enable_publish": true,
"cookie_file": "/home/ubuntu/xiaohongshu_cookies.txt",
"xhs_cli_path": "/home/ubuntu/.local/bin/xhs",
"default_tags": ["技术", "AI", "自动化", "编程", "科技资讯"],
"image_required": true,
"test_mode": false
},
"scheduler": {
"cron_expression": "0 16 * * *",
"timezone": "Asia/Shanghai",
"enable_logging": true,
"log_retention_days": 7,
"max_concurrent": 1
}
}