Commit 5c33f704 by Administrator

Update techhero-gateway-service.yml

parent 570b935a
...@@ -67,24 +67,20 @@ swagger: ...@@ -67,24 +67,20 @@ swagger:
#zuul: #zuul:
# ignoredServices: '*' # ignoredServices: '*'
zuul: zuul:
routes:
score:
path: /ksfw/score/**
serviceId: techhero-score-service
host: host:
socket-timeout-millis: 60000 socket-timeout-millis: 60000
connect-timeout-millis: 60000 connect-timeout-millis: 60000
ratelimit: ratelimit:
key-prefix: ksfwRequestLimit key-prefix: lhlxRequestLimit
enabled: true enabled: true
repository: redis #对应存储类型(用来存储统计信息) repository: redis #对应存储类型(用来存储统计信息)
behind-proxy: true #代理之后 behind-proxy: true #代理之后
policy-list: default-policy-list: #可选 - 针对所有的路由配置的策略,除非特别配置了policies
score: - limit: 2 #可选 - 每个刷新时间窗口对应的请求数量限制
- limit: 2 # 这种配置方式相当于:10分钟内允许5个请求访问/api/test/info接口 # quota: 1 #可选- 每个刷新时间窗口对应的请求时间限制,接口的耗时时间(秒)
refresh-interval: 60 refresh-interval: 60 # 刷新时间窗口的时间,默认值 (秒)
type: type: #可选 限流方式
- url - url_pattern=/ksfw/score/studentScore/getKfResult
notencrypt: notencrypt:
reqUrls: reqUrls:
......
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