cocoon/cocoon.json
xfy911 c3d4b112d7 docs(config+plan): 负载均衡示例 + 开发记录更新
- cocoon.json: 展示多后端负载均衡配置(/api -> 3000/3001)
- .cocoon-plan.md: 标记负载均衡完成,更新待办池和最近行动记录
2026-06-08 16:17:14 +08:00

19 lines
510 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": "-",
"proxies": [
{"prefix": "/api", "target": "http://localhost:3000"},
{"prefix": "/api", "target": "http://localhost:3001"},
{"prefix": "/backend", "target": "https://localhost:8443"}
]
}