BladeX/doc/nacos/blade.yaml

90 lines
1.8 KiB
YAML
Raw Normal View History

2019-01-30 17:06:23 +08:00
#服务器配置
server:
undertow:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
io-threads: 4
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
worker-threads: 20
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
buffer-size: 1024
# 是否分配的直接内存
direct-buffers: true
#spring配置
spring:
devtools:
restart:
log-condition-evaluation-delta: false
2019-03-09 20:07:46 +08:00
livereload:
port: 23333
2019-01-30 17:06:23 +08:00
#feign配置
feign:
2019-02-21 14:22:01 +08:00
hystrix:
2019-01-30 17:06:23 +08:00
enabled: true
2019-02-21 14:22:01 +08:00
#sentinel:
#enabled: true
2019-01-30 17:06:23 +08:00
okhttp:
enabled: true
httpclient:
enabled: false
#hystrix配置
hystrix:
threadpool:
default:
coreSize: 300
maxQueueSize: 1000
queueSizeRejectionThreshold: 800
command:
default:
execution:
isolation:
thread:
2019-02-21 14:22:01 +08:00
timeoutInMilliseconds: 5000
2019-01-30 17:06:23 +08:00
#ribbon配置
ribbon:
#对当前实例的重试次数
MaxAutoRetries: 1
#切换实例的重试次数
MaxAutoRetriesNextServer: 2
#请求处理的超时时间
ReadTimeout: 60000
#请求连接的超时时间
ConnectTimeout: 60000
#对所有操作请求都进行重试
OkToRetryOnAllOperations: true
#对外暴露端口
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
2019-03-09 20:07:46 +08:00
2019-04-01 22:56:46 +08:00
#blade配置
2019-03-09 20:07:46 +08:00
blade:
2019-05-18 14:47:30 +08:00
xss:
enable: true
skip-url:
- /weixin
2019-04-01 22:56:46 +08:00
secure:
skip-url:
- /test/**
client:
- client-id: sword
path-patterns:
- /sword/**
- client-id: saber
path-patterns:
- /saber/**
2019-03-09 20:07:46 +08:00
tenant:
2019-08-08 14:00:15 +08:00
column: tenant_id
2019-03-09 20:07:46 +08:00
tables:
- blade_notice
2019-04-01 22:56:46 +08:00