Commit a8f30f4a by Administrator

Update techhero-gkzy-gateway.yml

parent 0eb22348
...@@ -29,3 +29,27 @@ spring: ...@@ -29,3 +29,27 @@ spring:
max-wait: 10000 max-wait: 10000
login: #登录校验手机验证码开关 login: #登录校验手机验证码开关
enabled: 'false' enabled: 'false'
# 关闭默认路由
#zuul:
# ignoredServices: '*'
zuul:
host:
socket-timeout-millis: 60000
connect-timeout-millis: 60000
ratelimit:
key-prefix: lhlxRequestLimit
enabled: true
repository: redis #对应存储类型(用来存储统计信息)
behind-proxy: true #代理之后
default-policy-list: #可选 - 针对所有的路由配置的策略,除非特别配置了policies
- limit: 2 #可选 - 每个刷新时间窗口对应的请求数量限制
# quota: 1 #可选- 每个刷新时间窗口对应的请求时间限制,接口的耗时时间(秒)
refresh-interval: 60 # 刷新时间窗口的时间,默认值 (秒)
type: #可选 限流方式
- url_pattern=/ksfw/score/studentScore/scoreQuery
- limit: 3
refresh-interval: 60
type:
- url_pattern=/ksfw/score/studentScore/lqQuery
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment