Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
techhero-guangxi-config
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
techhero-guangxi-config
Commits
5c33f704
Commit
5c33f704
authored
Jun 24, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update techhero-gateway-service.yml
parent
570b935a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
techhero-gateway-service.yml
+7
-11
No files found.
techhero-gateway-service.yml
View file @
5c33f704
...
...
@@ -67,24 +67,20 @@ swagger:
#zuul:
# ignoredServices: '*'
zuul
:
routes
:
score
:
path
:
/ksfw/score/**
serviceId
:
techhero-score-service
host
:
socket-timeout-millis
:
60000
connect-timeout-millis
:
60000
ratelimit
:
key-prefix
:
ksfw
RequestLimit
key-prefix
:
lhlx
RequestLimit
enabled
:
true
repository
:
redis
#对应存储类型(用来存储统计信息)
behind-proxy
:
true
#代理之后
policy-list
:
score
:
-
limit
:
2
# 这种配置方式相当于:10分钟内允许5个请求访问/api/test/info接口
refresh-interval
:
60
type
:
-
url
default-policy-list
:
#可选 - 针对所有的路由配置的策略,除非特别配置了policies
-
limit
:
2
#可选 - 每个刷新时间窗口对应的请求数量限制
# quota: 1 #可选- 每个刷新时间窗口对应的请求时间限制,接口的耗时时间(秒)
refresh-interval
:
60
# 刷新时间窗口的时间,默认值 (秒)
type
:
#可选 限流方式
-
url_pattern=/ksfw/score/studentScore/getKfResult
notencrypt
:
reqUrls
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment