Commit 115a959b by Administrator

Update techhero-framework-gateway-local.yml

parent 0e3c1bcc
spring:
profiles: local
security:
oauth2:
resourceserver:
jwt:
jwk-set-uri: 'http://localhost:20420/rsa/publicKey' #配置RSA的公钥访问地址
redis:
redis:
database: 10
host: test-env
host: 119.96.87.17
port: 6379
password: techhero
timeout: 0
timeout: 5000
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: /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: '*'
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true
# routes: #配置路由路径
# - id: echhero-examsite-auth
# uri: lb://techhero-examsite-auth
# predicates:
# - Path=/auth/**
# filters:
# - StripPrefix=1
# - id: demo
# uri: lb://demo
# predicates:
# - Path=/api/**
# filters:
# - StripPrefix=1
# - id: techhero-project-verification
# uri: lb://techhero-project-verification
# predicates:
# - Path=/verification/**
# filters:
# - StripPrefix=1
# - id: techhero-component-task
# uri: lb://techhero-component-task
# predicates:
# - Path=/task/task/**
# filters:
# - StripPrefix=1
# - id: techhero-examsite-system
# 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
eureka:
instance:
ip-address: 127.0.0.1
prefer-ip-address: true
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 20
client:
serviceUrl:
defaultZone: http://techhero:techhero123@127.0.0.1:15801/eureka
registry-fetch-interval-seconds: 80
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-auth/oauth/check_token
gateway:
allowed:
origins:
- '*'
- http://127.0.0.1:8084
- http://127.0.0.1:15800
- http://127.0.0.1:15801
- https://account.aliyun.com
- https://datav.aliyun.com
- http://datav.aliyun.com
- 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/**
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