application-dev.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. server:
  2. task_stop_url: http://localhost:11003/stop
  3. task_stop_url_cat: http://localhost:11004/stop
  4. # 数据源配置
  5. spring:
  6. datasource:
  7. type: com.zaxxer.hikari.HikariDataSource
  8. mybatis-flex:
  9. # sql审计
  10. audit_enable: true
  11. # sql打印
  12. sql_print: true
  13. datasource:
  14. # 数据源-1
  15. ds1:
  16. # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
  17. # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
  18. type: ${spring.datasource.type}
  19. # mysql数据库
  20. # driver-class-name: com.mysql.cj.jdbc.Driver
  21. # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
  22. # username: root
  23. # password: Root@369
  24. #postgresql数据库
  25. driver-class-name: org.postgresql.Driver
  26. # url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  27. url: jdbc:postgresql://101.126.133.7:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  28. username: postgres
  29. password: P3x0LG8jzyHRX59l
  30. # 最大连接池数量
  31. maximum-pool-size: 4
  32. # 最小空闲线程数量
  33. minimum-idle: 2
  34. # 配置获取连接等待超时的时间
  35. connectionTimeout: 300000
  36. # 校验超时时间
  37. validationTimeout: 50000
  38. # 空闲连接存活最大时间,默认10分钟
  39. idleTimeout: 6000000
  40. # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
  41. maxLifetime: 1800000
  42. # 多久检查一次连接的活性
  43. keepaliveTime: 30000
  44. # # 数据源-2
  45. # ds2:
  46. # # 指定为HikariDataSource
  47. # type: ${spring.datasource.type}
  48. # # mysql数据库
  49. # driver-class-name: com.mysql.cj.jdbc.Driver
  50. # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
  51. # username: root
  52. # password: Root@369
  53. # #postgresql数据库
  54. ## driver-class-name: org.postgresql.Driver
  55. ## url: jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  56. ## username: postgres
  57. ## password: postgres@369
  58. # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
  59. spring.data:
  60. redis:
  61. # 地址
  62. host: 101.126.133.7
  63. # 端口,默认为6379
  64. port: 6379
  65. # 数据库索引
  66. database: 0
  67. # 密码(如没有密码请注释掉)
  68. password: Z;G4AS:Vor'YF#p?
  69. # 连接超时时间
  70. timeout: 10s
  71. # 是否开启ssl
  72. ssl.enabled: false
  73. redisson:
  74. # redis key前缀
  75. keyPrefix: taais
  76. # 线程池数量
  77. threads: 4
  78. # Netty线程池数量
  79. nettyThreads: 8
  80. # 单节点配置
  81. singleServerConfig:
  82. # 客户端名称
  83. clientName: ${taais.name}
  84. # 最小空闲连接数
  85. connectionMinimumIdleSize: 8
  86. # 连接池大小
  87. connectionPoolSize: 32
  88. # 连接空闲超时,单位:毫秒
  89. idleConnectionTimeout: 10000
  90. # 命令等待超时,单位:毫秒
  91. timeout: 3000
  92. # 发布和订阅连接池大小
  93. subscriptionConnectionPoolSize: 50
  94. --- # 监控中心客户端配置
  95. spring.boot.admin.client:
  96. # 增加客户端开关
  97. enabled: false
  98. url: http://localhost:9090/admin
  99. instance:
  100. service-host-type: IP
  101. username: km
  102. password: 123456
  103. --- # powerjob 配置
  104. powerjob:
  105. worker:
  106. # 如何开启调度中心请查看文档教程
  107. enabled: false
  108. # 需要先在 powerjob 登录页执行应用注册后才能使用
  109. app-name: taais
  110. # 28080 端口 随着主应用端口飘逸 避免集群冲突
  111. port: 2${server.port}
  112. protocol: http
  113. server-address: 127.0.0.1:7700
  114. store-strategy: disk
  115. allow-lazy-connect-server: false
  116. max-appended-wf-context-length: 4096
  117. max-result-length: 4096
  118. --- # sms 短信 支持 华为 阿里云 腾讯云 等等各式各样的短信服务商
  119. # https://sms4j.com/doc3/ 文档地址 各个厂商可同时使用
  120. sms:
  121. # 标注从yml读取配置
  122. config-type: yaml
  123. is-print: true
  124. blends:
  125. # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
  126. tx1:
  127. #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  128. supplier: tencent
  129. #您的accessKey
  130. access-key-id: 您的accessKey
  131. #您的accessKeySecret
  132. access-key-secret: 您的accessKeySecret
  133. #您的短信签名
  134. signature: 您的短信签名
  135. #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
  136. template-id: xxxxxxxx
  137. #短信自动重试间隔时间 默认五秒
  138. retry-interval: 5
  139. # 短信重试次数,默认0次不重试,如果你需要短信重试则根据自己的需求修改值即可
  140. max-retries: 0
  141. #您的sdkAppId
  142. sdk-app-id: 您的sdkAppId
  143. # 自定义的标识,也就是configId这里可以是任意值(最好不要是中文)
  144. tx2:
  145. #厂商标识,标定此配置是哪个厂商,详细请看厂商标识介绍部分
  146. supplier: tencent
  147. #您的accessKey
  148. access-key-id: 您的accessKey
  149. #您的accessKeySecret
  150. access-key-secret: 您的accessKeySecret
  151. #您的短信签名
  152. signature: 您的短信签名
  153. #模板ID 非必须配置,如果使用sendMessage的快速发送需此配置
  154. template-id: xxxxxxxx
  155. #您的sdkAppId
  156. sdk-app-id: 您的sdkAppId
  157. # Sa-Token配置
  158. sa-token:
  159. # token名称 (同时也是cookie名称)
  160. token-name: Authorization
  161. # token固定超时 设为七天 (必定过期) 单位: 秒
  162. timeout: 604800
  163. # 多端不同 token 有效期 可查看 LoginHelper.loginByDevice 方法自定义
  164. # token最低活跃时间 (指定时间无操作就过期) 单位: 秒
  165. active-timeout: 604800
  166. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  167. is-concurrent: true
  168. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  169. is-share: false
  170. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  171. token-style: uuid
  172. # 是否输出操作日志
  173. is-log: true
  174. # jwt秘钥
  175. jwt-secret-key: abcdefghijklmnopqrstuvwxyz
  176. is-print: false #关闭控制台banner
  177. captcha:
  178. enable: true
  179. # 页面 <参数设置> 可开启关闭 验证码校验
  180. # 验证码类型 math 数组计算 char 字符验证
  181. type: MATH
  182. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  183. category: CIRCLE
  184. # 数字验证码位数
  185. numberLength: 1
  186. # 字符验证码长度
  187. charLength: 4