From d3bf75d612e6e419c8d34bb4e6e1518216592cda Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Fri, 19 Jan 2024 11:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E7=BA=BF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.yml | 12 ++++++--- .../src/main/resources/application-prod.yml | 7 +++++- .../src/main/resources/application-prod.yml | 25 ++++++++++--------- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/virtual-patient-manage/src/main/resources/application-prod.yml b/virtual-patient-manage/src/main/resources/application-prod.yml index cd7989fa..26d6857c 100644 --- a/virtual-patient-manage/src/main/resources/application-prod.yml +++ b/virtual-patient-manage/src/main/resources/application-prod.yml @@ -25,7 +25,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.10.138:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://virtual-patient-mysql:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 username: root password: '123456' initial-size: 5 # 初始化大小 @@ -48,11 +48,17 @@ spring: slow-sql-millis: 5000 # 慢 SQL 的标准,默认 3000,单位:毫秒 merge-sql: false # 合并多个连接池的监控数据,默认false redis: - host: 192.168.10.138 + host: virtual-patient-redis port: 6379 password: 123456 mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml configuration: - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl \ No newline at end of file + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + +minio: + url: http://virtual-patient-minio:9002 + accessKey: admin + secretKey: 12345678 + bucketName: virtual-patient-bucket-prod \ No newline at end of file diff --git a/virtual-patient-rasa/src/main/resources/application-prod.yml b/virtual-patient-rasa/src/main/resources/application-prod.yml index 21acddf1..9bb74da3 100644 --- a/virtual-patient-rasa/src/main/resources/application-prod.yml +++ b/virtual-patient-rasa/src/main/resources/application-prod.yml @@ -19,6 +19,11 @@ rasa: url: 127.0.0.1:{}/webhooks/rest/webhook wakeup: cron: 0 */10 * * * ? #每十分钟执行一次 + +text2vec: + service: + domain: http://127.0.0.1:5000/ + spring: application: name: virtual-patient @@ -32,7 +37,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.10.138:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://virtual-patient-mysql:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 username: root password: '123456' initial-size: 5 # 初始化大小 diff --git a/virtual-patient-web/src/main/resources/application-prod.yml b/virtual-patient-web/src/main/resources/application-prod.yml index 363e4912..94796795 100644 --- a/virtual-patient-web/src/main/resources/application-prod.yml +++ b/virtual-patient-web/src/main/resources/application-prod.yml @@ -12,7 +12,6 @@ server: # 是否分配的直接内存 direct-buffers: true - spring: application: name: virtual-patient @@ -25,7 +24,7 @@ spring: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.10.138:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://virtual-patient-mysql:3306/virtual_patient?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8 username: root password: '123456' initial-size: 5 # 初始化大小 @@ -34,7 +33,7 @@ spring: max-wait: 60000 # 获取连接时的最大等待时间 min-evictable-idle-time-millis: 300000 # 一个连接在池中最小生存的时间,单位是毫秒 time-between-eviction-runs-millis: 60000 # 多久才进行一次检测需要关闭的空闲连接,单位是毫秒 - filters: stat,wall # 配置扩展插件:stat-监控统计,log4j-日志,wall-防火墙(防止SQL注入),去掉后,监控界面的sql无法统计 + filters: stat,wall # 配置扩展插件:stat-监控统计,log4j-日志,wall-防火墙(防止SQL注入),去掉后,监控界面的sql无法统计 validation-query: SELECT 1 # 检测连接是否有效的 SQL语句,为空时以下三个配置均无效 test-on-borrow: true # 申请连接时执行validationQuery检测连接是否有效,默认true,开启后会降低性能 test-on-return: true # 归还连接时执行validationQuery检测连接是否有效,默认false,开启后会降低性能 @@ -48,10 +47,17 @@ spring: slow-sql-millis: 5000 # 慢 SQL 的标准,默认 3000,单位:毫秒 merge-sql: false # 合并多个连接池的监控数据,默认false redis: - host: 192.168.10.138 + host: virtual-patient-redis port: 6379 password: 123456 +minio: + url: http://virtual-patient-minio:9002 + accessKey: admin + secretKey: 12345678 + bucketName: virtual-patient-bucket-prod + + mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml configuration: @@ -59,19 +65,14 @@ mybatis-plus: paddle-speech: # https://github.com/PaddlePaddle/PaddleSpeech/wiki/PaddleSpeech-Server-RESTful-API - tts: http://192.168.10.138:8090/paddlespeech/tts - asr: http://192.168.10.138:8090/paddlespeech/asr + tts: http://virtual-patient-paddle-speech:8090/paddlespeech/tts + asr: http://virtual-patient-paddle-speech:8090/paddlespeech/asr rasa: - base-url: http://192.168.10.138:8890/virtual-patient-rasa/ + base-url: http://virtual-patient-rasa:8890/virtual-patient-rasa/ talk: rasa/talkRasa saveRasaFile: rasaFile/saveRasaFile train: rasaCmd/trainExec run: rasaCmd/runExec -human: - base-url: https://digital-human.jd.com - room-id: /getRoomId - text-driven: /text_driven - talk-status: /talkStatus answer: # 对于没有匹配上的缺省回答ID,关联的是vp_file_resource的ID defaultNoMatchId: 1739173836351885313 \ No newline at end of file