license: Add MIT license
This commit is contained in:
31
gateway.yaml
31
gateway.yaml
@@ -2,25 +2,36 @@ gateway:
|
||||
host: "0.0.0.0"
|
||||
port: 8080
|
||||
features:
|
||||
- host
|
||||
- request_id
|
||||
- real_ip
|
||||
- logger
|
||||
|
||||
proxies:
|
||||
- id: "proxy-id"
|
||||
host: "example.com"
|
||||
target: "http://backend:3000"
|
||||
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-id"
|
||||
target: "https://api.example.com"
|
||||
- id: "api-001"
|
||||
host: "host-001"
|
||||
target: "target-001"
|
||||
|
||||
routes:
|
||||
- id: "route-id"
|
||||
path: "/api/v1/*"
|
||||
- id: "route-001"
|
||||
api: "api-001"
|
||||
path: "/api/v1/public/*"
|
||||
strip_prefix:
|
||||
enabled: true
|
||||
prefix: "/api/v1"
|
||||
prefix: "/api/v1/public"
|
||||
security:
|
||||
auth:
|
||||
enabled: true
|
||||
@@ -31,4 +42,4 @@ routes:
|
||||
exclude: []
|
||||
waf:
|
||||
enabled: true
|
||||
methods: ["GET", "POST"]
|
||||
methods: ["GET", "POST"]
|
||||
|
||||
Reference in New Issue
Block a user