ai-manus/chat-server/src/main/resources/application.yml

87 lines
2.2 KiB
YAML
Raw Normal View History

2025-07-18 16:38:18 +08:00
eureka:
client:
serviceUrl:
defaultZone: http://${eureka-host:localhost}:8077/eureka
instance:
prefer-ip-address: true
server:
port: 16750
servlet:
encoding:
charset: utf-8
enabled: true
spring:
application:
name: brichat-service
# 环境切换配置 - 快速切换环境,修改这里即可
# 可选值: wuhan, beijing
# 线上部署时可通过环境变量 SPRING_PROFILES_ACTIVE 覆盖
profiles:
2025-07-22 16:48:28 +08:00
active: beijing
2025-07-18 16:38:18 +08:00
# 文件上传配置
2025-07-18 16:38:18 +08:00
servlet:
multipart:
max-request-size: 10MB
max-file-size: 10MB
# 数据源配置已移至对应的环境配置文件
# application-wuhan.yml 和 application-beijing.yml
2025-07-18 16:38:18 +08:00
data:
mongodb:
uri: ${mongo-uri:mongodb://bjtds:bjtds2019@localhost:27017/bjtds}
http:
encoding:
charset: utf-8
enabled: true
jackson:
time-zone: GMT+8
# Redis配置已移至对应的环境配置文件
2025-07-18 16:38:18 +08:00
redis:
database: 0
jedis:
pool:
max-active: 200
max-wait: -1
max-idle: 10
min-idle: 0
timeout: 5000
# ??sql??
mybatis-plus:
configuration:
# log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: auto # ????
bjtds:
# MQTT配置已移至对应的环境配置文件
2025-07-18 16:38:18 +08:00
mqtt:
auth:
username: ${mqtt-username:bjtds}
password: ${mqtt-password:bjtds2019}
filePath:
uploadPath: ${upload-file-path:D:\bjtds\}
pdfFilePath: ${pdf-file-path:D:\bjtds\pdfFile\}
difyUploadPath: ${dify-upload-path:D:\bjtds\difyUploadFile\}
pdfFileTempPath: ${pdf-file-temp-path:D:\bjtds\pdfTempFile\pdfFile\}
# Dify配置已移至对应的环境配置文件保留公共配置
2025-07-18 16:38:18 +08:00
dify:
server:
email: bjtds@bjtds.com # 请替换为实际的 Dify 服务邮箱,若不需要调用 server相关接口可不填
password: 123456Aa # 请替换为实际的 Dify 服务密码,若不需要调用 server相关接口可不填
dataset:
api-key: ${dify-dataset-api-key:dataset-0Hij9IwoWYbJe1vvwVh8y7DS} # 请替换为实际的知识库api-key, 若不需要调用知识库可不填