SuperAPI AI 工具集

zuplo

部署与运维

查看项目

更新于 10-16 09:47

技能介绍

用途:该技能面向 Zuplo API 网关的配置与最佳实践,触发条件为在配置 Zuplo API 网关时使用,帮助整理路由、鉴权、限流等配置模式。

主要能力与用法:路由配置为必需项,通过 routes 数组定义 path、methods、handler 与 policies;handler 使用 module 与 export 指定处理模块,示例为 $import(@zuplo/runtime) 下的 urlRewriteHandler,并可带 options(如 rewritePattern)。API Key 鉴权为必需项,建议始终使用内置的 api-key-auth,示例策略为 name: "api-key-auth"、policyType: "api-key-inbound",handler 的 export 为 ApiKeyInboundPolicy、module 为 $import(@zuplo/runtime)。

决策参考:需要鉴权用 api-key-inbound 策略;需要限流用 rate-limit 策略;需要缓存用 cache 策略;需要转换用自定义策略处理器;需要监控则启用 analytics。

适用场景:配置 Zuplo API 网关的路由、入站策略、鉴权与限流等场景。

限制与暂未提供:资料仅给出配置片段与决策方向,未提供价格、平台支持范围、性能数据或完整部署步骤;相关扩展文档(gateway-setup.md、gitops.md、performance.md、security.md)原文未附内容,具体细节暂未提供。