Files
Jarvis_java/src/main/resources/application-prod.yml
2025-12-14 00:00:45 +08:00

92 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 6666
spring:
main:
allow-circular-references: true
application:
name: jd
#数据源配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${jarvis.server.host}:3306/jd?characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
username: root
password: mysql_7sjTXH
hikari:
maximum-pool-size: 2000 # 最大连接数
minimum-idle: 48 # 最小空闲连接数
idle-timeout: 30000 # 空闲连接超时时间(毫秒)
max-lifetime: 2000000 # 最大生命周期(毫秒)
connection-timeout: 30000 # 连接超时时间(毫秒)
pool-name: SpringBootHikariCP # 连接池名字
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
data:
redis:
host: ${jarvis.server.host}
password: redis_6PZ52S
timeout: 1800000
port: 6379
database: 7
# 日志配置
logging:
level:
cn.van: debug
org.springframework: warn
# 服务地址配置(用于服务器迁移)
jarvis:
# 服务器基础地址如果所有服务都在同一台服务器可以使用127.0.0.1
# 生产环境192.168.8.88 或 127.0.0.1
server:
host: 127.0.0.1
# RocketMQ Name Server地址
rocketmq:
name-server: 127.0.0.1:9876
# 微信机器人服务地址(注意:此服务不在同一台服务器,需要单独配置)
wx:
base-url: http://192.168.8.6:7777
api-path: /qianxun/httpapi
# 评论接口服务地址(注意:此服务不在同一台服务器,需要单独配置)
comment:
base-url: http://192.168.8.6:5000
fetch-path: /fetch_comments
# 青龙面板服务地址(注意:此服务不在同一台服务器,需要单独配置)
qinglong:
base-url: http://134.175.126.60:35700
# 代理服务地址(注意:此服务不在同一台服务器,需要单独配置)
proxy:
host: 192.168.8.9
port: 1070
config:
WX_BASE_URL: http://192.168.8.6:7777/qianxun/httpapi?wxid=wxid_cfmrk2upjtf322 #wxid_kr145nk7l0an31大号
QL_BASE_URL: http://134.175.126.60:35700
rocketmq:
name-server: ${jarvis.server.rocketmq.name-server} # 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 # 批量消费最大消息数
isRunning:
wx: true
jd: true