You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
60 lines
2.1 KiB
#服务器配置
|
|
server:
|
|
port: 9999
|
|
undertow:
|
|
threads:
|
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
|
io: 16
|
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
|
worker: 400
|
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
|
buffer-size: 1024
|
|
# 是否分配的直接内存
|
|
direct-buffers: true
|
|
|
|
#数据源配置
|
|
spring:
|
|
data:
|
|
redis:
|
|
##redis 单机环境配置
|
|
##将docker脚本部署的redis服务映射为宿主机ip
|
|
##生产环境推荐使用阿里云高可用redis服务并设置密码
|
|
host: 127.0.0.1
|
|
port: 6379
|
|
password:
|
|
database: 10
|
|
ssl:
|
|
enabled: false
|
|
##redis 集群环境配置
|
|
#cluster:
|
|
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
|
|
# commandTimeout: 5000
|
|
datasource:
|
|
# url: jdbc:mysql://rm-uf68y03eiu3e480xz.mysql.rds.aliyuncs.com:3306/nenghui-uat-prod?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
|
# username: nhsf
|
|
# password: nhsf@1234
|
|
url: jdbc:mysql://127.0.0.1:3306/nenghui-uat?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
|
username: root
|
|
password: root
|
|
|
|
#第三方登陆
|
|
social:
|
|
enabled: true
|
|
domain: http://127.0.0.1:1888
|
|
|
|
#blade配置
|
|
blade:
|
|
#分布式锁配置
|
|
lock:
|
|
##是否启用分布式锁
|
|
enabled: false
|
|
##将docker脚本部署的redis服务映射为宿主机ip
|
|
##生产环境推荐使用阿里云高可用redis服务并设置密码
|
|
address: redis://127.0.0.1:6379
|
|
password: 123456
|
|
#本地文件上传
|
|
file:
|
|
remote-mode: true
|
|
upload-domain: http://localhost:8999
|
|
remote-path: /usr/share/nginx/html
|