- 极简 JSON 解析器新增 '[' / ']' token 支持 - plugins 字段可同时兼容字符串和字符串数组 - 向后兼容:单字符串 "plugins.so" 仍有效 - 向前扩展:数组 ["a.so", "b.so"] 支持多插件 修复: - .gitignore 添加遗漏的 test_websocket 二进制 - Makefile 补全 test_log 单元测试编译规则 - cocoon.json 示例改为数组格式 - test_config.c 新增 3 项 plugins 解析测试(字符串/单数组/多数组) 全部 142 个单元测试 + 68 项集成测试通过 ✓
14 lines
293 B
JSON
14 lines
293 B
JSON
{
|
|
"root_dir": "./examples/www",
|
|
"port": 8080,
|
|
"threaded": true,
|
|
"num_workers": 4,
|
|
"max_connections": 10000,
|
|
"timeout_ms": 30000,
|
|
"log_level": "info",
|
|
"gzip_enabled": true,
|
|
"brotli_enabled": true,
|
|
"plugins": ["plugins/hello.so"],
|
|
"access_log": "-"
|
|
}
|