secondsky avatar

Api Gateway Configuration

You'll reach for this when you need to set up centralized API management for microservices, whether you're working with Kong, Nginx, AWS API Gateway, or Traefik. It covers the essentials: routing and load balancing, JWT authentication, rate limiting, request transformation, and SSL termination. The configurations are practical starting points rather than production-ready templates, but they show you the structure for each platform. The best practices section is solid on the fundamentals like authenticating at the gateway level and never exposing backend details in errors. If you're building a microservice architecture and need to consolidate cross-cutting concerns in one place, this gives you the baseline patterns.

skills.sh installs
422
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill api-gateway-configuration --agent claude-code

Installs into .claude/skills of the current project.

Files

API Gateway Configuration

Design and configure API gateways for microservice architectures.

Gateway Responsibilities

  • Request routing and load balancing
  • Authentication and authorization
  • Rate limiting and throttling
  • Request/response transformation
  • Logging and monitoring
  • SSL termination

Kong Configuration (YAML)

_format_version: "3.0"

services:
  - name: user-service
    url: http://user-service:3000
    routes:
      - name: user-routes
        paths: ["/api/users"]
    plugins:
      - name: rate-limiting
        config:
          minute: 100
          policy: local
      - name: jwt

  - name: order-service
    url: http://order-service:3000
    routes:
      - name: order-routes
        paths: ["/api/orders"]

Nginx Configuration

upstream backend {
    server backend1:3000 weight=5;
    server backend2:3000 weight=5;
    keepalive 32;
}

server {
    listen 443 ssl;

    location /api/ {
        proxy_pass http://backend;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_cache_valid 200 1m;
    }

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Backend & APIs, Security, Cloud & Infrastructure
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1bobmatnyc avatarprisma-ormbobmatnyc/claude-mpm-skillsPrisma ORM for TypeScript - Type-safe database toolkit with schema-first development, auto-generated client, migrations, relations, and Prisma Studio341skills.sh installs
2nice-wolf-studio avatarsupabase-authnice-wolf-studio/claude-code-supabase-skillsManage authentication and user operations in Supabase. Use for sign up, sign in, sign out, password resets, and user management.318skills.sh installs
3cinience avataralicloud-database-rds-supabasecinience/alicloud-skillsManage Alibaba Cloud RDS Supabase (RDS AI Service 2025-05-07) via OpenAPI. Use for creating, starting/stopping/restarting instances, resetting passwords, queryi271skills.sh installs
4itsmostafa avatarapi-gatewayitsmostafa/aws-agent-skillsAWS API Gateway for REST and HTTP API management. Use when creating APIs, configuring integrations, setting up authorization, managing stages, implementing rate142skills.sh installs
5Dexploarer avatarapi-gateway-configuratorDexploarer/hyper-forgeConfigure and manage API gateways including Kong, Tyk, AWS API Gateway, and Apigee. Activates when users need help setting up API gateways, rate limiting, authe0skills.sh installs
6prisma avatarprisma-client-apiprisma/skillsPrisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering 419.6Kskills.sh installs