WangKang 5 tháng trước cách đây
mục cha
commit
b9c98ca7dd
1 tập tin đã thay đổi với 139 bổ sung0 xóa
  1. 139 0
      emoon-tongue/src/main/resources/application-gssz.yml

+ 139 - 0
emoon-tongue/src/main/resources/application-gssz.yml

@@ -0,0 +1,139 @@
+server:
+  port: 8082
+spring:
+  config:
+    import:
+      - classpath:tongue-image-check-rules.yml
+  thymeleaf:
+    prefix: classpath:/templates/
+    suffix: .html
+    mode: HTML
+    encoding: UTF-8
+    cache: false
+  servlet:
+    multipart:
+      max-file-size: 30MB      # 单个文件最大大小
+      max-request-size: 50MB   # 整个请求最大大小
+  datasource:
+    dynamic:
+      primary: tongue
+      datasource:
+        tongue:
+          url: jdbc:mysql://192.168.10.102:3306/emoon_com?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
+          username: emoon_com
+          password: iJNeCXXtP2LTW6Jc
+          driver-class-name: com.mysql.cj.jdbc.Driver
+
+# MinIO配置
+minio:
+  endpoint: http://117.72.188.97:19000 #内部连接地址(HTTP)
+  public-endpoint: https://test.hanmc.online/files # 公开访问地址(HTTPS,用于返回给前端,需要通过Nginx反向代理)
+  access-key: emoonai
+  secret-key: emoon.COM3
+  bucket-name: emoon-tongue
+  expiry-enabled: true # 是否启用URL超时,false表示不会超时
+  expiry-minutes: 60 # URL超时时间(分钟),仅在expiry-enabled为true时生效
+
+# AI服务配置
+ai:
+  mock-flag: false # true:跳过AI直接返回mock结果;false:走真实流程(本地舌象mock接口 + 二段对话模型diagnosis)
+
+  # 舌诊诊断 provider:dashscope / local
+  diagnosis:
+    provider: local
+
+  # DashScope(兼容模式)配置
+  dashscope:
+    url: https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
+    model: qwen3-vl-plus
+    api-key: sk-fa9452b62d504a21b4ed595be3bf3881
+
+  # 本地API配置(当 provider=local 时生效)
+  local:
+    # 指向后端里新增的 mock 本地模型接口(用于整体流程联调)
+    # 模型服务(可通过 curl http://ip:8100/service2/v1/models 验证连通性)
+    url: "http://61.178.77.37:8100/service2/v1/chat/completions"
+    model: "/home/gansu/output_sft_qwen3_2B"
+    system-prompt: "我是AI助手."
+    auth-header: "" # 例如:Authorization
+    auth-token: ""  # 例如:Bearer xxx
+    timeout-ms: 15000
+
+  # 大模型配置
+  llm:
+    url: http://60.164.133.40:19997/v1/chat/completions
+    model: qwen3-1.7b
+    # 二次诊断(病名推断)专用模型,优先使用更大模型提升理解能力
+    diagnosis-model: qwen3-32B
+    max-tokens: 4096
+
+mybatis-plus:
+  mapperPackage: com.emoon.tongue.mapper
+
+weaviate:
+  protocol: http
+  host: 8.136.61.90
+  port: 6039
+  className: LocalKnowledge
+
+# 文件落盘服务(把 MultipartFile base64 后发往对端保存,返回 data.filePath)
+tongue:
+  file-download:
+    url: http://61.178.77.37:8100/service4/api/file/download
+
+--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
+spring.data:
+  redis:
+    # 地址
+    host: 8.136.61.90
+    # 端口,默认为6379
+    port: 6380
+    # 数据库索引
+    database: 0
+    # redis 密码必须配置
+    password: HE2WrbSzY7tjHfWj;
+    # 连接超时时间
+    timeout: 10s
+    # 是否开启ssl
+    ssl.enabled: false
+
+# redisson 配置
+redisson:
+  # redis key前缀
+  keyPrefix: "tongue:"
+  # 线程池数量
+  threads: 4
+  # Netty线程池数量
+  nettyThreads: 8
+  # 单节点配置
+  singleServerConfig:
+    # 客户端名称 不能用中文
+    clientName: tongue
+    # 最小空闲连接数
+    connectionMinimumIdleSize: 8
+    # 连接池大小
+    connectionPoolSize: 32
+    # 连接空闲超时,单位:毫秒
+    idleConnectionTimeout: 10000
+    # 命令等待超时,单位:毫秒
+    timeout: 3000
+    # 发布和订阅连接池大小
+    subscriptionConnectionPoolSize: 50
+
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
+# SpringDoc配置
+springdoc:
+  info:
+    title: 甘肃省中医院AI舌诊系统API
+    description: AI舌诊系统后端API文档
+    version: v1.0.0
+  components:
+    securitySchemes: {}
+
+  # 静态资源配置
+  web:
+    resources:
+      static-locations: classpath:/static/, classpath:/public/, classpath:/resources/, classpath:/META-INF/resources/