init: Initial commit
This commit is contained in:
41
gateway.yaml
41
gateway.yaml
@@ -7,22 +7,20 @@ gateway:
|
|||||||
- logger
|
- logger
|
||||||
|
|
||||||
proxies:
|
proxies:
|
||||||
- id: "secnex-dev"
|
- id: "proxy-id"
|
||||||
host: "dev.secnex.io"
|
host: "example.com"
|
||||||
target: "http://localhost:3003"
|
target: "http://backend:3000"
|
||||||
|
|
||||||
apis:
|
apis:
|
||||||
- id: "secnex-dev"
|
- id: "api-id"
|
||||||
target: "https://httpbin.org"
|
target: "https://api.example.com"
|
||||||
- id: "secnex-public"
|
|
||||||
target: "https://httpbin.org"
|
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
- id: "secnex-dev"
|
- id: "route-id"
|
||||||
path: "/api/v1/dev/*"
|
path: "/api/v1/*"
|
||||||
strip_prefix:
|
strip_prefix:
|
||||||
enabled: true
|
enabled: true
|
||||||
prefix: "/api/v1/dev"
|
prefix: "/api/v1"
|
||||||
security:
|
security:
|
||||||
auth:
|
auth:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -33,25 +31,4 @@ routes:
|
|||||||
exclude: []
|
exclude: []
|
||||||
waf:
|
waf:
|
||||||
enabled: true
|
enabled: true
|
||||||
methods: ["*"]
|
methods: ["GET", "POST"]
|
||||||
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"]
|
|
||||||
Reference in New Issue
Block a user