Files
api-gateway/gateway.yaml
2026-02-05 23:59:17 +01:00

46 lines
782 B
YAML

gateway:
host: "0.0.0.0"
port: 8080
features:
- host
- request_id
- real_ip
- logger
hosts:
- id: "host-001"
name: "host-001"
domain: "localhost:8080"
- id: "host-002"
name: "host-002"
domain: "api.deinserver.co"
targets:
- id: "target-001"
name: "target-001"
url: "https://httpbin.org"
apis:
- id: "api-001"
host: "host-001"
target: "target-001"
routes:
- id: "route-001"
api: "api-001"
path: "/api/v1/public/*"
strip_prefix:
enabled: true
prefix: "/api/v1/public"
security:
auth:
enabled: true
type: "api_key"
header: "X-Api-Key"
path:
include: []
exclude: []
waf:
enabled: true
methods: ["GET", "POST"]