refactor(yudao-server): 更新数据库配置和 AIGC 服务地址

- 修改 Docker 开发环境和生产环境的数据库配置
- 更新 AIGC 服务地址为可配置的变量
-调整 RAG 服务相关配置
This commit is contained in:
sunxiqing 2025-08-12 08:55:07 +08:00
parent 1339697bd4
commit aa0328a1cb
2 changed files with 11 additions and 8 deletions

View File

@ -46,14 +46,14 @@ spring:
primary: master
datasource:
master:
url: jdbc:mysql://119.3.223.215:3306/xhllm?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 # MySQL Connector/J 8.X 连接的示例
username: xhllm_user
password: XNJZ-xhllm_user-!#%246
url: jdbc:mysql://36.103.199.248:3308/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4 # MySQL Connector/J 8.X 连接的示例
username: root
password: 123456
slave: # 模拟从库,可根据自己需要修改
lazy: true # 开启懒加载,保证启动速度
url: jdbc:mysql://119.3.223.215:3306/xhllm?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4
username: xhllm_user
password: XNJZ-xhllm_user-!#%246
url: jdbc:mysql://36.103.199.248:3308/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8mb4
username: root
password: 123456
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis:
@ -326,11 +326,13 @@ llm:
# 自动评估
auto_evaluation: /llm-eval
# 文生图
text_to_image: http://36.103.199.248:5123/generate-image
text_to_image: ${AIGC_Service_URL}/generate-image
# 检查点文件列表
check_file_list: /llm/finetuning/checkpoints?model_name=
# 模型调优停止 POST
stop_finetuning: /llm/finetuning/stop
# 请求地址
request_address: ${AIGC_Service_URL}
# 基座模型状态 POST
base_model_status: ${AIGC_Service_URL}/llm/deploy/list
# 模型部署 POST

View File

@ -248,7 +248,6 @@ llm:
backend:
#################### 8123: RAG服务、训练集和标注相关API。 ###################
### RAG服务
request_address: http://127.0.0.1:5123
#RAG健康检查 GET
rag_health: http://127.0.0.1:8123/health
#上传并向量化 POST
@ -327,6 +326,8 @@ llm:
text_to_image: http://127.0.0.1:5123/generate-image
# 检查点文件列表
check_file_list: /llm/finetuning/checkpoints?model_name=
# 请求地址
request_address: http://127.0.0.1:5123
# 模型调优停止 POST
stop_finetuning: /llm/finetuning/stop
# 基座模型状态 POST