41 lines
914 B
JSON
41 lines
914 B
JSON
{
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 5000,
|
|
"debug": false
|
|
},
|
|
"nanobot": {
|
|
"command": "nanobot",
|
|
"timeout": 60,
|
|
"max_output_length": 4000,
|
|
"system_prompt": "你是一个 AI 助手,正在通过微信公众号为用户提供服务。保持回答简洁明了,适合微信聊天场景。"
|
|
},
|
|
"security": {
|
|
"allowed_tools": ["read", "write", "edit", "exec", "web_search", "web_fetch"],
|
|
"blocked_commands": [
|
|
"rm -rf /",
|
|
"dd if=",
|
|
"mkfs",
|
|
"shutdown",
|
|
"reboot",
|
|
"halt",
|
|
"poweroff",
|
|
"> /dev/sda",
|
|
":(){ :|:& };:"
|
|
],
|
|
"max_requests_per_minute": 10,
|
|
"enable_content_filter": true
|
|
},
|
|
"session": {
|
|
"max_history": 10,
|
|
"expire_hours": 24,
|
|
"max_concurrent_sessions": 100
|
|
},
|
|
"logging": {
|
|
"level": "INFO",
|
|
"file": "logs/server.log",
|
|
"max_size_mb": 100,
|
|
"backup_count": 5
|
|
}
|
|
}
|