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
115a959b
Commit
115a959b
authored
Sep 19, 2022
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update techhero-framework-gateway-local.yml
parent
0e3c1bcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
66 deletions
+74
-66
techhero-framework-gateway-local.yml
+74
-66
No files found.
techhero-framework-gateway-local.yml
View file @
115a959b
spring
:
spring
:
profiles
:
local
security
:
oauth2
:
resourceserver
:
jwt
:
jwk-set-uri
:
'
http://localhost:20420/rsa/publicKey'
#配置RSA的公钥访问地址
redis
:
redis
:
redis
:
database
:
10
database
:
10
host
:
test-env
host
:
119.96.87.17
port
:
6379
port
:
6379
password
:
techhero
password
:
techhero
timeout
:
0
timeout
:
500
0
pool
:
pool
:
max-active
:
8
max-active
:
8
max-wait
:
-1
max-wait
:
-1
max-idle
:
8
max-idle
:
8
min-idle
:
0
min-idle
:
0
rabbitmq
:
gateway
:
host
:
dev-env
discovery
:
port
:
5672
locator
:
username
:
techhero
password
:
techhero
virtual-host
:
/framework
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
enabled
:
true
isolation
:
lower-case-service-id
:
true
thread
:
# routes: #配置路由路径
#配置hystrix的超时时间,要大于(RibbonReadTimeout + RibbonConnectTimeout) * (MaxAutoRetries + 1) * (MaxAutoRetriesNextServer + 1)
# - id: echhero-examsite-auth
timeout-in-milliseconds
:
20000
# uri: lb://techhero-examsite-auth
strategy
:
SEMAPHORE
# predicates:
thread-pool
:
# - Path=/auth/**
default
:
# filters:
coreSize
:
10
# - StripPrefix=1
maxQueueSize
:
1000
# - id: demo
queueSizeRejectionThreshold
:
800
# uri: lb://demo
circuitBreaker
:
# predicates:
requestVolumeThreshold
:
100
#熔断失败个数 超过既发生短路 默认20个
# - Path=/api/**
fallback
:
# filters:
isolation
:
# - StripPrefix=1
semaphore
:
# - id: techhero-project-verification
maxConcurrentRequests
:
50
#回退线程数量
# uri: lb://techhero-project-verification
security
:
# predicates:
sessions
:
stateless
# - Path=/verification/**
oauth2
:
# filters:
client
:
# - StripPrefix=1
client-id
:
gateway_client
# - id: techhero-component-task
client-secret
:
techhero
# uri: lb://techhero-component-task
resource
:
# predicates:
jwt
:
# - Path=/task/task/**
key-uri
:
http://127.0.0.1:15803/oauth/token_key
#解析jwt令牌所需要密钥的地址
# filters:
#key-value: techhero
# - StripPrefix=1
authorization
:
# - id: techhero-examsite-system
check-token-access
:
http://techhero-framework-auth/oauth/check_token
# uri: lb://techhero-examsite-system
# predicates:
# - Path=/system/**
# filters:
# - StripPrefix=1
http
:
multipart
:
enabled
:
true
file-size-threshold
:
1000Mb
max-file-size
:
2048Mb
max-request-size
:
2048Mb
gateway
:
eureka
:
allowed
:
instance
:
origins
:
ip-address
:
127.0.0.1
-
'
*'
prefer-ip-address
:
true
-
http://127.0.0.1:8084
lease-renewal-interval-in-seconds
:
5
-
http://127.0.0.1:15800
lease-expiration-duration-in-seconds
:
20
-
http://127.0.0.1:15801
client
:
-
https://account.aliyun.com
serviceUrl
:
-
https://datav.aliyun.com
defaultZone
:
http://techhero:techhero123@127.0.0.1:15801/eureka
-
http://datav.aliyun.com
registry-fetch-interval-seconds
:
80
-
http://cdn-service-datav.aliyun.com
-
http://127.0.0.1:16801
server
:
tomcat
:
basedir
:
/Users/wwq/Desktop/tomcat
# 放行白名单
secure
:
ignore
:
urls
:
#配置白名单路径
-
/actuator/**
-
/auth/**
-
/auth/hello
-
/socket/**
-
/task/**
-
/gateway/**
-
/route/**
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