50 lines
983 B
YAML
50 lines
983 B
YAML
gateway:
|
|
host: "0.0.0.0"
|
|
port: 8080
|
|
debug: false
|
|
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: []
|
|
keys:
|
|
- id: "a6f07c4f-e8d5-42e1-8bf0-9085849d8265"
|
|
key: "$argon2id$v=19$m=65536,t=3,p=4$zSzQSUc4ZOLmuG+kMEjWSQ$L28wMpBN3SusY+npHwfGOVKv3jkmSIbMMGaxngJ7tD0"
|
|
waf:
|
|
enabled: true
|
|
methods: ["GET", "POST"]
|