108 lines
3.0 KiB
YAML
108 lines
3.0 KiB
YAML
server:
|
||
port: 6666
|
||
spring:
|
||
main:
|
||
allow-circular-references: true
|
||
application:
|
||
name: jd
|
||
profiles:
|
||
active: dev
|
||
servlet:
|
||
multipart:
|
||
# 单个文件大小
|
||
max-file-size: 20MB
|
||
# 设置总上传的文件大小
|
||
max-request-size: 20MB
|
||
#MyWebMvcConfig中开启@EnableWebMvc则失效
|
||
jackson:
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
time-zone: GMT+8
|
||
# # 对象字段为null不显示
|
||
# default-property-inclusion: non_null
|
||
|
||
# 资源信息
|
||
messages:
|
||
# 国际化资源文件路径
|
||
basename: i18n/messages
|
||
task:
|
||
execution:
|
||
pool:
|
||
core-size: 32
|
||
jpa:
|
||
show-sql: false
|
||
|
||
# token配置
|
||
token:
|
||
# 令牌自定义标识
|
||
header: Authorization
|
||
# 令牌密钥
|
||
secret: 5c6649a39f184678af3580795a7307d9
|
||
# 令牌有效期(单位分钟)
|
||
expireTime: 1440
|
||
|
||
# 用户配置
|
||
user:
|
||
password:
|
||
# 密码最大错误次数
|
||
maxRetryCount: 5
|
||
# 密码锁定时间(默认10分钟)
|
||
lockTime: 10
|
||
|
||
# 日志配置
|
||
logging:
|
||
level:
|
||
cn.van333: debug
|
||
org.springframework: warn
|
||
org.hibernate: ERROR
|
||
org.springframework.web: WARN
|
||
org.apache.http: WARN
|
||
com.zaxxer.hikari: ERROR
|
||
# 服务地址配置(用于服务器迁移)
|
||
jarvis:
|
||
server:
|
||
host: 192.168.8.88
|
||
rocketmq:
|
||
name-server: 192.168.8.88:9876
|
||
rocketmq:
|
||
name-server: ${jarvis.server.rocketmq.name-server:192.168.8.88:9876} # RocketMQ Name Server 地址
|
||
producer:
|
||
group: wx_producer # 生产者组名
|
||
send-msg-timeout: 1000 # 发送消息超时时间
|
||
consumer:
|
||
group: wx_consumer # 消费者组名
|
||
consume-thread-min: 20 # 消费线程池最小线程数
|
||
consume-thread-max: 64 # 消费线程池最大线程数
|
||
consume-message-batch-max-size: 64 # 批量消费最大消息数
|
||
client:
|
||
charset: UTF-8
|
||
encoding: UTF-8
|
||
management:
|
||
endpoints:
|
||
web:
|
||
exposure:
|
||
include: health,metrics,resilience4j
|
||
prometheus:
|
||
metrics:
|
||
export:
|
||
enabled: true
|
||
|
||
resilience4j.ratelimiter:
|
||
instances:
|
||
wxMsgLimiter:
|
||
limitForPeriod: 10 # 根据业务吞吐量调整
|
||
limitRefreshPeriod: 1s # 固定1秒周期
|
||
timeoutDuration: 0 # 立即失败模式
|
||
registerHealthIndicator: true
|
||
|
||
# 图片转换配置
|
||
image:
|
||
convert:
|
||
# 图片存储路径(转换后的jpg图片存储目录)
|
||
storage-path: ${user.home}/comment-images
|
||
# 图片访问基础URL(如果配置,转换后的图片将通过此URL访问)
|
||
# 例如: http://your-domain.com/images 或 http://localhost:6666/images
|
||
# 如果为空,则返回本地文件路径
|
||
# 建议配置为:http://your-domain:6666/images (使用ImageController提供HTTP访问)
|
||
base-url:
|
||
|