-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPIGateway-dev.yml
32 lines (32 loc) · 1.02 KB
/
APIGateway-dev.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
server:
port: 8060
management:
security:
enabled: false
zuul:
# 让所有服务忽略敏感头(可以加cookie)
sensitive-headers:
routes:
AppProductService: /myProduct/**
ignored-patterns:
- /**/msg
ratelimit:
key-prefix: your-prefix
enabled: true
repository: REDIS
behind-proxy: true
add-response-headers: true
default-policy-list: #optional - will apply unless specific policy exists
- limit: 10 #optional - request number limit per refresh interval window
quota: 1000 #optional - request time limit per refresh interval window (in seconds)
refresh-interval: 60 #default value (in seconds)
type: #optional
- user
- origin
- url
- httpmethod
policy-list:
APPPRODUCTSERVICE:
- limit: 10 #optional - request number limit per refresh interval window
quota: 1000 #optional - request time limit per refresh interval window (in seconds)
refresh-interval: 60 #default value (in seconds)