[全量] 初始化项目代码、配置、文档及Agent协同harness
This commit is contained in:
76
chat_web_backend/src/main/resources/application-test.yml
Normal file
76
chat_web_backend/src/main/resources/application-test.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
# 对外服务的IP端口地址(可以写作前端的服务IP地址,对外暴露前后端是一个整体)
|
||||
serverUrlPrefix: http://localhost:3000
|
||||
serverFrontUrlPrefix: /chat_web_yj
|
||||
|
||||
# Tomcat
|
||||
server:
|
||||
# 应用服务 WEB 访问端口
|
||||
port: 8093
|
||||
name: chat_backend_yj
|
||||
servlet:
|
||||
context-path: /chat_backend_yj
|
||||
|
||||
spring:
|
||||
# 缓存
|
||||
redis:
|
||||
open: true # 是否开启redis缓存 true开启 false关闭
|
||||
database: 0
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password: ""
|
||||
timeout: 6000 # 连接超时时长(毫秒
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
|
||||
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
min-idle: 5 # 连接池中的最小空闲连接
|
||||
#指定数据源
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
#master:XQ
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# 本地 MySQL(Docker)
|
||||
url: jdbc:mysql://127.0.0.1:33306/chat_gpt_yj?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: "1234567890"
|
||||
druid:
|
||||
# 初始连接数
|
||||
initialSize: 5
|
||||
# 最小连接池数量
|
||||
minIdle: 10
|
||||
# 最大连接池数量
|
||||
maxActive: 20
|
||||
# 配置获取连接等待超时的时间
|
||||
maxWait: 60000
|
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||
maxEvictableIdleTimeMillis: 900000
|
||||
# 配置检测连接是否有效
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
poolPreparedStatements: true
|
||||
filters: stat,wall,slf4j,config
|
||||
useGlobalDataSourceStat: true
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
merge-sql: true
|
||||
slow-sql-millis: 10000
|
||||
|
||||
# 系统配置参数
|
||||
system:
|
||||
upload-path: /opt/upload/${server.name}
|
||||
|
||||
#chat连接配置
|
||||
chat:
|
||||
# 服务器langchain backend api接口地址
|
||||
ip: http://localhost
|
||||
port: 7861
|
||||
modelName: Qwen2-72B-Instruct
|
||||
host: ${chat.ip}:${chat.port}
|
||||
prompt-config-url: ${chat.host}/server/configs
|
||||
Reference in New Issue
Block a user