api-gateway-configuration by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill api-gateway-configuration为微服务架构设计和配置 API 网关,以处理路由、身份验证、速率限制以及请求/响应转换。
最小工作示例:
# kong.yml - Kong Gateway configuration
_format_version: "2.1"
_transform: true
services:
- name: user-service
url: http://user-service:3000
routes:
- name: user-routes
paths:
- /api/users
- /api/profile
plugins:
- name: rate-limiting
config:
minute: 100
policy: local
- name: jwt
config:
secret: your-secret-key
key_claim_name: "sub"
- name: cors
config:
origins:
- "http://localhost:3000"
// ... (完整实现请参阅参考指南)
references/ 目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 指南 | 内容 |
|---|---|
| Kong 配置 | Kong 配置 |
| Nginx 配置 | Nginx 配置 |
| AWS API 网关配置 | AWS API 网关配置 |
| Traefik 配置 | Traefik 配置 |
| Node.js 网关实现 | Node.js 网关实现 |
每周安装数
166
代码仓库
GitHub 星标数
141
首次出现
2026 年 1 月 21 日
安全审计
安装于
gemini-cli142
opencode140
codex136
cursor129
github-copilot123
claude-code110
Design and configure API gateways to handle routing, authentication, rate limiting, and request/response transformation for microservice architectures.
Minimal working example:
# kong.yml - Kong Gateway configuration
_format_version: "2.1"
_transform: true
services:
- name: user-service
url: http://user-service:3000
routes:
- name: user-routes
paths:
- /api/users
- /api/profile
plugins:
- name: rate-limiting
config:
minute: 100
policy: local
- name: jwt
config:
secret: your-secret-key
key_claim_name: "sub"
- name: cors
config:
origins:
- "http://localhost:3000"
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Kong Configuration | Kong Configuration |
| Nginx Configuration | Nginx Configuration |
| AWS API Gateway Configuration | AWS API Gateway Configuration |
| Traefik Configuration | Traefik Configuration |
| Node.js Gateway Implementation | Node.js Gateway Implementation |
Weekly Installs
166
Repository
GitHub Stars
141
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli142
opencode140
codex136
cursor129
github-copilot123
claude-code110