application-dev.yml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. # 项目相关配置
  2. app:
  3. # 项目名称
  4. name: nb
  5. # 实例演示开关
  6. demoEnabled: false
  7. # 获取ip地址开关
  8. addressEnabled: true
  9. # 上传类型,minio;aliyun
  10. uploadType: aliyun
  11. # 上传目录
  12. uploadDir: D:/${app.name}-files
  13. # 缓存前缀
  14. cachePrefix: ${app.name}:dev
  15. # MinIO相关配置
  16. minio:
  17. uploadEndpoint: 192.168.100.32
  18. uploadPort: 7001
  19. uploadSecure: false
  20. downEndpoint: 192.168.100.32
  21. downPort: 7002
  22. downSecure: false
  23. accessKey: nbnetpump
  24. secretKey: tuoren123
  25. bucketName: ${app.name}-${profiles.active}-bucket
  26. # 数据源配置
  27. spring:
  28. datasource:
  29. type: com.alibaba.druid.pool.DruidDataSource
  30. driverClassName: com.mysql.cj.jdbc.Driver
  31. url: jdbc:mysql://192.168.100.32:3306/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
  32. username: root
  33. password: 123456
  34. druid:
  35. # 初始连接数
  36. initialSize: 16
  37. # 最小连接池数量
  38. minIdle: 20
  39. # 最大连接池数量
  40. maxActive: 20
  41. # 配置获取连接等待超时的时间
  42. maxWait: 60000
  43. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  44. timeBetweenEvictionRunsMillis: 60000
  45. # 配置一个连接在池中最小生存的时间,单位是毫秒
  46. minEvictableIdleTimeMillis: 300000
  47. # 配置一个连接在池中最大生存的时间,单位是毫秒
  48. maxEvictableIdleTimeMillis: 900000
  49. # 配置检测连接是否有效
  50. validationQuery: SELECT 1 FROM DUAL
  51. testWhileIdle: true
  52. testOnBorrow: false
  53. testOnReturn: false
  54. # 通过别名的方式配置扩展插件,多个英文逗号分隔,常用的插件有:
  55. # 监控统计用的filter:stat
  56. # 日志用的filter:log4j2
  57. # 防御sql注入的filter:wall
  58. filters: log4j2
  59. webStatFilter:
  60. enabled: true
  61. statViewServlet:
  62. enabled: true
  63. # 设置白名单,不填则允许所有访问
  64. allow:
  65. url-pattern: /druid/*
  66. # 控制台管理用户名和密码
  67. login-username: admin
  68. login-password: admin
  69. filter:
  70. stat:
  71. enabled: true
  72. # 慢SQL记录
  73. log-slow-sql: true
  74. slow-sql-millis: 10000
  75. merge-sql: true
  76. wall:
  77. config:
  78. multi-statement-allow: true
  79. quartz:
  80. job-store-type: jdbc
  81. jdbc:
  82. initialize-schema: never
  83. properties:
  84. org:
  85. quartz:
  86. scheduler:
  87. instanceName: NbDevScheduler
  88. instanceId: AUTO
  89. jobStore:
  90. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  91. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  92. tablePrefix: QRTZ_
  93. isClustered: true
  94. clusterCheckinInterval: 10000
  95. useProperties: false
  96. dataSource: myDS
  97. threadPool:
  98. class: org.quartz.simpl.SimpleThreadPool
  99. threadCount: 10
  100. threadPriority: 5
  101. threadsInheritContextClassLoaderOfInitializingThread: true
  102. dataSource:
  103. myDS:
  104. provider: hikaricp
  105. driver: com.mysql.cj.jdbc.Driver
  106. URL: jdbc:mysql://192.168.100.32:3306/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
  107. user: root
  108. password: 123456
  109. validationQuery: SELECT 1
  110. rabbitmq:
  111. host: 192.168.100.32
  112. port: 5672
  113. username: guest
  114. password: guest
  115. virtual-host: /
  116. # redis 配置
  117. redis:
  118. # 地址
  119. host: 192.168.100.32
  120. # 端口,默认为6379
  121. port: 9736
  122. # 数据库索引
  123. database: 6
  124. # 密码
  125. password: 6E6985E1F7CB40F24A\.
  126. # 连接超时时间
  127. timeout: 30s
  128. lettuce:
  129. pool:
  130. # 连接池中的最小空闲连接
  131. min-idle: 16
  132. # 连接池中的最大空闲连接
  133. max-idle: 16
  134. # 连接池的最大数据库连接数
  135. max-active: 16
  136. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  137. max-wait: -1ms
  138. request:
  139. check:
  140. enable: false
  141. # 开启请求验签
  142. sign: true
  143. # 请求与服务器时间间隔不得超过 10分钟
  144. expire-interval: 600
  145. # 请求不可重复接收时间 10分钟
  146. repeat-interval: 600
  147. # 阿里云对接配置
  148. iot:
  149. consumers:
  150. - enable: false
  151. consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService
  152. name: NB
  153. config:
  154. accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
  155. accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
  156. consumerGroupId: "NZKDBbvhxUqtcF5VqDb2000100"
  157. aliyunUid: "1238892013759131"
  158. regionId: "cn-shanghai"
  159. iotInstanceId: "iot-060a0bgd"
  160. productKey: he1fACg7ySx
  161. - enable: false
  162. consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService
  163. name: 4G
  164. config:
  165. accessKey: "LTAI5tRaK95AqvWiQ9LspZ3q"
  166. accessSecret: "wZUpYGeztNcV4tGbBLfK2OvxnZzZF3"
  167. consumerGroupId: "0na0olXpWEmWgMucxIH1000100"
  168. aliyunUid: "1777492656465771"
  169. regionId: "cn-shanghai"
  170. iotInstanceId: "iot-06z00hi2guq5qi3"
  171. productKey: k0g9w9xRhhi
  172. aliyun:
  173. accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
  174. accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
  175. oss:
  176. aliyun:
  177. accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
  178. accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
  179. endpoint: "oss-cn-hangzhou.aliyuncs.com"
  180. bucketName: "tuoren-nb-dev"
  181. notify:
  182. wechat:
  183. url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=c3e093fe-5125-47d5-a171-0f4be2f61a78