-
Notifications
You must be signed in to change notification settings - Fork 0
/
gateweaver.yml
41 lines (39 loc) · 844 Bytes
/
gateweaver.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
policyDefinitions:
cors:
origin: "example.com"
rateLimit:
rateLimitBy: "jwt"
limit: 2
jwt:
secret: "test-jwt-secret"
audience: "test-audience"
issuer: "test-issuer"
algorithms:
- "HS256"
endpoints:
- path: "/jwt/mock"
target:
url: "https://example.com/api"
request:
headers:
Authorization: "Bearer mock-server-token"
query:
message: "Message from gateweaver query"
response:
headers:
remove-header: ""
replace-header: "New value"
policies:
- cors
- jwt
- path: "/jwt/rate-limited"
target:
url: "https://example.com/api"
request:
headers:
Authorization: "Bearer mock-server-token"
query:
message: "Message from gateweaver query"
policies:
- rateLimit
- jwt