application-hst.yaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. --- #################### 注册中心 + 配置中心相关配置 ####################
  2. spring:
  3. cloud:
  4. nacos:
  5. server-addr: 192.168.0.53:8848 # Nacos 服务器地址
  6. username: nacos # Nacos 账号
  7. password: nacos # Nacos 密码
  8. discovery: # 【配置中心】配置项
  9. namespace: test # 命名空间。这里使用 dev 开发环境
  10. group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
  11. metadata:
  12. version: 1.0.0 # 服务实例的版本号,可用于灰度发布
  13. config: # 【注册中心】配置项
  14. namespace: test # 命名空间。这里使用 dev 开发环境
  15. group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
  16. --- #################### 数据库相关配置 ####################
  17. spring:
  18. boot:
  19. admin:
  20. # Spring Boot Admin Client 客户端的相关配置
  21. client:
  22. instance:
  23. service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME]
  24. # Spring Boot Admin Server 服务端的相关配置
  25. context-path: /admin # 配置 Spring
  26. # 数据源配置项
  27. autoconfigure:
  28. exclude:
  29. - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 排除 Druid 的自动配置,使用 dynamic-datasource-spring-boot-starter 配置多数据源
  30. datasource:
  31. druid: # Druid 【监控】相关的全局配置
  32. web-stat-filter:
  33. enabled: true
  34. stat-view-servlet:
  35. enabled: true
  36. allow: # 设置白名单,不填则允许所有访问
  37. url-pattern: /druid/*
  38. login-username: # 控制台管理用户名和密码
  39. login-password:
  40. filter:
  41. stat:
  42. enabled: true
  43. log-slow-sql: true # 慢 SQL 记录
  44. slow-sql-millis: 100
  45. merge-sql: true
  46. wall:
  47. config:
  48. multi-statement-allow: true
  49. dynamic: # 多数据源配置
  50. druid: # Druid 【连接池】相关的全局配置
  51. initial-size: 5 # 初始连接数
  52. min-idle: 10 # 最小连接池数量
  53. max-active: 20 # 最大连接池数量
  54. max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
  55. time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
  56. min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
  57. max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
  58. validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
  59. test-while-idle: true
  60. test-on-borrow: false
  61. test-on-return: false
  62. primary: master
  63. datasource:
  64. master:
  65. url: jdbc:dm://192.168.0.53:5236?schema=TZ_CLOUD_YIQUN
  66. username: SYSDBA
  67. password: Bowin123
  68. slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
  69. url: jdbc:dm://192.168.0.53:5236?schema=TZ_CLOUD_YIQUN
  70. username: SYSDBA
  71. password: Bowin123
  72. # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
  73. data:
  74. redis:
  75. host: 192.168.0.53 # 地址
  76. port: 6379 # 端口
  77. database: 0 # 数据库索引
  78. password: Bowin123 # 密码,建议生产环境开启
  79. --- #################### MQ 消息队列相关配置 ####################
  80. # rocketmq 配置项,对应 RocketMQProperties 配置类
  81. rocketmq:
  82. name-server: data.hofo.co:9876 # RocketMQ Namesrv
  83. #rocketmq:
  84. # name-server: 192.168.20.224:9876
  85. --- #################### 定时任务相关配置 ####################
  86. xxl:
  87. job:
  88. admin:
  89. #addresses: http://127.0.0.1:9090/xxl-job-admin # 调度中心部署跟地址
  90. addresses: https://aimkt.hofo.co/xxl-job-admin # 调度中心部署跟地址
  91. --- #################### 服务保障相关配置 ####################
  92. # Lock4j 配置项
  93. lock4j:
  94. acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
  95. expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
  96. --- #################### 监控相关配置 ####################
  97. # Actuator 监控端点的配置项
  98. management:
  99. endpoints:
  100. web:
  101. base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
  102. exposure:
  103. include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
  104. # 日志文件配置
  105. logging:
  106. level:
  107. # 配置自己写的 MyBatis Mapper 打印日志
  108. cn.start.tz.module.pressure2.dal.mysql: debug
  109. cn.start.tz.module.pressure2.dal.mysql.logger.ApiErrorLogMapper: INFO # 配置 ApiErrorLogMapper 的日志级别为 info,避免和 GlobalExceptionHandler 重复打印
  110. cn.start.tz.module.pressure2.dal.mysql.file.FileConfigMapper: INFO # 配置 FileConfigMapper 的日志级别为 info
  111. org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR # TODO 芋艿:先禁用,Spring Boot 3.X 存在部分错误的 WARN 提示
  112. file:
  113. name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
  114. --- #################### 芋道相关配置 ####################
  115. # 芋道配置项,设置当前项目所有自定义的配置
  116. tz:
  117. env: # 多环境的配置项
  118. tag: ${HOSTNAME}
  119. name: hst
  120. demo: false # 开启演示模式
  121. captcha:
  122. enable: false
  123. minio:
  124. host: http://192.168.0.53:9110/dexdev/
  125. hostouter: https://tjt.gzsei.cn/app-api/dexdev/
  126. office:
  127. docservice:
  128. url: 'http://192.168.0.53:6180/'
  129. callbackUrl: 'http://192.168.0.53:48080/admin-api/pressure2/dynamic-tb/track'
  130. ignoreSSLCertificate: true
  131. lossyEdit: epub, fb2, html, odt, ott, rtf, txt, csv, ods, ots, odp, otp
  132. security:
  133. key: 'bowin_jwt-secret'
  134. header: ''
  135. tokenValidityInMinutes: 120
  136. feign:
  137. client:
  138. #direct-grape-service: http://127.0.0.1:48010 # 本地测试
  139. direct-grape-service: http://8.138.109.252:48010
  140. external:
  141. oa:
  142. host: http://192.168.18.115
  143. rest:
  144. userName: flowsend
  145. password: 69030b1b-44b7-45d0-aaf3-e73968933642
  146. loginName: 300801
  147. # 定时获取状态
  148. cron: 0 0 0 * * ?
  149. synchronization:
  150. host: http://192.168.20.70:28081
  151. apiKey: cecb02cf8d1c7be3a05987d6acc6d913666d9cb72cc061039ffb19ecaead1bb9
  152. cron: 0 0 0 * * ?
  153. grapecity:
  154. url: http://192.168.0.53:48011