57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
gateway:
|
|
host: "0.0.0.0"
|
|
port: 8080
|
|
features:
|
|
- request_id
|
|
- real_ip
|
|
- logger
|
|
|
|
proxies:
|
|
- id: "secnex-dev"
|
|
host: "dev.secnex.io"
|
|
target: "http://localhost:3003"
|
|
|
|
apis:
|
|
- id: "secnex-dev"
|
|
target: "https://httpbin.org"
|
|
- id: "secnex-public"
|
|
target: "https://httpbin.org"
|
|
|
|
routes:
|
|
- id: "secnex-dev"
|
|
path: "/api/v1/dev/*"
|
|
strip_prefix:
|
|
enabled: true
|
|
prefix: "/api/v1/dev"
|
|
security:
|
|
auth:
|
|
enabled: true
|
|
type: "api_key"
|
|
header: "X-Api-Key"
|
|
path:
|
|
include: []
|
|
exclude: []
|
|
waf:
|
|
enabled: true
|
|
methods: ["*"]
|
|
ip_addresses:
|
|
allow:
|
|
- "127.0.0.1"
|
|
block:
|
|
- "127.0.0.2"
|
|
- id: "secnex-public"
|
|
path: "/api/v1/public/*"
|
|
strip_prefix:
|
|
enabled: true
|
|
prefix: "/api/v1/public"
|
|
security:
|
|
auth:
|
|
enabled: false
|
|
type: "session"
|
|
header: "Authorization"
|
|
path:
|
|
include: []
|
|
exclude: []
|
|
waf:
|
|
enabled: true
|
|
methods: ["GET"] |