Files
hair/gateway/config.example.json
T
xsl 14ec4964a0 feat(gateway): 为52号接口增加客户端静态Token校验
请求头X-API-Token默认yonghe1999,可通过interface52_token覆盖;缺少或不匹配返回401/code1009,不进入派发队列。客户端Token不转发到worker,其他接口保持原样。

同步Token输入框、配置示例与调用文档。57项网关测试及临时网关连接真实worker的浏览器验证通过。
2026-11-04 11:35:02 +08:00

30 lines
736 B
JSON

{
"interface52_token": "yonghe1999",
"workers": [
"http://127.0.0.1:28187",
"http://127.0.0.1:28188"
],
"primary_workers": [],
"shared_password": "REPLACE_ME_ROTATE_PERIODICALLY",
"public_base_url": "https://hair.xiangsilian.com",
"static_dir": "static/annotations",
"health_check": {
"path": "/health",
"interval_seconds": 8,
"timeout_seconds": 3,
"unhealthy_threshold": 2,
"healthy_threshold": 1,
"cooldown_seconds": 60
},
"ark_api_key": "",
"dispatch": {
"per_worker_concurrency": 1,
"max_global_concurrency": 1,
"max_queue_wait_seconds": 590,
"queue_wait_seconds": 30,
"request_timeout_seconds": 600,
"retry_on_failure": true,
"max_retries": 1
}
}