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