Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
techhero-framework-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-framework-config
Commits
50c76723
Commit
50c76723
authored
2 years ago
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
61e3d338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
techhero-framework-gateway-dev.yml
+92
-0
No files found.
techhero-framework-gateway-dev.yml
0 → 100644
View file @
50c76723
spring
:
redis
:
database
:
15
host
:
dev-env
port
:
6379
password
:
techhero
timeout
:
0
pool
:
max-active
:
8
max-wait
:
-1
max-idle
:
8
min-idle
:
0
rabbitmq
:
host
:
dev-env
port
:
5672
username
:
techhero
password
:
techhero
virtual-host
:
/product
listener
:
simple
:
acknowledge-mode
:
manual
# 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
publisher-confirms
:
true
#确认消息已发送到交换机(Exchange)
publisher-returns
:
true
#确认消息已发送到队列(Queue)
zuul
:
host
:
connect-timeout-millis
:
20000
socket-timeout-millis
:
20000
max-total-connections
:
500
ignoredServices
:
'
*'
hystrix
:
command
:
default
:
execution
:
timeout
:
enabled
:
true
isolation
:
thread
:
#配置hystrix的超时时间,要大于(RibbonReadTimeout + RibbonConnectTimeout) * (MaxAutoRetries + 1) * (MaxAutoRetriesNextServer + 1)
timeout-in-milliseconds
:
20000
strategy
:
SEMAPHORE
thread-pool
:
default
:
coreSize
:
10
maxQueueSize
:
1000
queueSizeRejectionThreshold
:
800
circuitBreaker
:
requestVolumeThreshold
:
100
#熔断失败个数 超过既发生短路 默认20个
fallback
:
isolation
:
semaphore
:
maxConcurrentRequests
:
50
#回退线程数量
security
:
sessions
:
stateless
oauth2
:
client
:
client-id
:
gateway_client
client-secret
:
techhero
resource
:
jwt
:
key-uri
:
http://127.0.0.1:15803/oauth/token_key
#解析jwt令牌所需要密钥的地址
#key-value: techhero
authorization
:
check-token-access
:
http://techhero-framework-oauth/oauth/check_token
gateway
:
allowed
:
origins
:
-
'
*'
-
http://127.0.0.1:8084
-
http://127.0.0.1:15801
-
https://account.aliyun.com
-
https://datav.aliyun.com
-
http://datav.aliyun.com
-
http://cdn-service-datav.aliyun.com
ignore
:
urls
:
-
/*/open/**
-
/swagger/api-docs
-
/swagger-resources/**
-
/swagger-ui.html
-
/*/v2/api-docs
-
/webjars/**
-
/auth/**
-
/oss/**
-
/system/db/getUserListPage/**
-
/exam/dc/rest/dcKsjhb/getExamPlan
-
/system/vc/code
This diff is collapsed.
Click to expand it.
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