Browse Source

添加application-local

Gaokun Wang 4 months ago
parent
commit
cc71ac70df
1 changed files with 79 additions and 23 deletions
  1. 79 23
      als-start/src/main/resources/application-prod.yml

+ 79 - 23
als-start/src/main/resources/application-prod.yml

@@ -17,28 +17,35 @@ spring:
       maxLifetime: 1800000
       # 多久检查一次连接的活性
       keepaliveTime: 30000
+  flyway:
+    enabled: true
+    baseline-on-migrate: true
+    clean-on-validation-error: false
+    sql-migration-prefix: V
+    placeholder-replacement: false
+    sql-migration-suffixes: .sql
+    locations: classpath:db/dm
+    create-schemas: false
 mybatis-flex:
   # sql审计
-  audit_enable: false
+  audit_enable: true
   # sql打印
-  sql_print: false
+  sql_print: true
   datasource:
     # 数据源-1
     ds1:
       # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
       # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
       type: ${spring.datasource.type}
-      # mysql数据库
-      #      driver-class-name: com.mysql.cj.jdbc.Driver
-      #      url: jdbc:mysql://localhost:3306/als?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
-      #      username: root
-      #      password: Root@369
-      #postgresql数据库
-      driver-class-name: org.postgresql.Driver
-      url: jdbc:postgresql://localhost:5432/als?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
-      username: postgres
-      password: postgres@369
-
+      #DM8数据库
+      driver-class-name: dm.jdbc.driver.DmDriver
+      #      url: jdbc:dm://192.168.0.103:5236?schema=lqbz&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
+      url: jdbc:dm://101.126.133.7:11000?schema=lqbz&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
+      #      url: jdbc:dm://127.0.0.1:5236?schema=als&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
+      #      url: jdbc:dm://127.0.0.1:5236?schema=lqbz&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
+      username: SYSDBA
+      #      password: SYSDBA123
+      password: GIUgeTfer3FD3216F
 #    # 数据源-2
 #    ds2:
 #      # 指定为HikariDataSource
@@ -58,13 +65,14 @@ mybatis-flex:
 spring.data:
   redis:
     # 地址
-    host: localhost
+    host: 101.126.133.7
+    #    host: localhost
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 0
     # 密码(如没有密码请注释掉)
-    # password:
+    password: Z;G4AS:Vor'YF#p?
     # 连接超时时间
     timeout: 10s
     # 是否开启ssl
@@ -74,17 +82,17 @@ redisson:
   # redis key前缀
   keyPrefix: eco
   # 线程池数量
-  threads: 16
+  threads: 4
   # Netty线程池数量
-  nettyThreads: 32
+  nettyThreads: 8
   # 单节点配置
   singleServerConfig:
     # 客户端名称
     clientName: ${eco.name}
     # 最小空闲连接数
-    connectionMinimumIdleSize: 32
+    connectionMinimumIdleSize: 8
     # 连接池大小
-    connectionPoolSize: 64
+    connectionPoolSize: 32
     # 连接空闲超时,单位:毫秒
     idleConnectionTimeout: 10000
     # 命令等待超时,单位:毫秒
@@ -92,10 +100,10 @@ redisson:
     # 发布和订阅连接池大小
     subscriptionConnectionPoolSize: 50
 
---- # 监控中心客户端配置
+--- # 监控中心客户端配置 false true
 spring.boot.admin.client:
   # 增加客户端开关
-  enabled: true
+  enabled: false
   url: http://localhost:9099/admin
   instance:
     service-host-type: IP
@@ -105,8 +113,8 @@ spring.boot.admin.client:
 --- # powerjob 配置
 powerjob:
   worker:
-    # 如何开启调度中心请查看文档教程
-    enabled: true
+    # 如何开启调度中心请查看文档教程 false true
+    enabled: false
     # 需要先在 powerjob 登录页执行应用注册后才能使用
     app-name: als-worker
     # 28080 端口 随着主应用端口飘逸 避免集群冲突
@@ -117,3 +125,51 @@ powerjob:
     allow-lazy-connect-server: false
     max-appended-wf-context-length: 4096
     max-result-length: 4096
+
+--- # sms 短信 支持 华为 阿里云 腾讯云 等等各式各样的短信服务商
+# https://sms4j.com/doc3/ 文档地址 各个厂商可同时使用
+sms:
+  # 标注从yml读取配置
+  config-type: yaml
+  is-print: true
+  blends:
+    # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
+    tx1:
+      #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
+      supplier: tencent
+      #您的accessKey
+      access-key-id: 您的accessKey
+      #您的accessKeySecret
+      access-key-secret: 您的accessKeySecret
+      #您的短信签名
+      signature: 您的短信签名
+      #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
+      template-id: xxxxxxxx
+      #短信自动重试间隔时间  默认五秒
+      retry-interval: 5
+      # 短信重试次数,默认0次不重试,如果你需要短信重试则根据自己的需求修改值即可
+      max-retries: 0
+      #您的sdkAppId
+      sdk-app-id: 您的sdkAppId
+    # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
+    tx2:
+      #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
+      supplier: tencent
+      #您的accessKey
+      access-key-id: 您的accessKey
+      #您的accessKeySecret
+      access-key-secret: 您的accessKeySecret
+      #您的短信签名
+      signature: 您的短信签名
+      #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
+      template-id: xxxxxxxx
+      #您的sdkAppId
+      sdk-app-id: 您的sdkAppId
+
+easy-es:
+  address: 101.126.133.7:9007
+  banner: false # 默认为true 打印banner 若您不期望打印banner,可配置为false
+  username: #es用户名,若无则删去此行配置
+  password: #es密码,若无则删去此行配置
+kgqa:
+  ask-url: http://192.168.0.103:8000/kgqa/ask/