application-dev.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. druid:
  5. # 主库数据源
  6. master:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. driverClassName: com.mysql.cj.jdbc.Driver
  9. # url: jdbc:mysql://h386t1c.nat.ipyingshe.com:58951/shoreline_seats_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. url: jdbc:mysql://120.25.74.229:8006/ax_seat_show?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
  11. username: root
  12. password: ROOT@taiji2022!
  13. # 从库数据源
  14. slave:
  15. type: com.alibaba.druid.pool.DruidDataSource
  16. driverClassName: com.mysql.cj.jdbc.Driver
  17. # 从数据源开关/默认关闭
  18. enabled: true
  19. url: jdbc:mysql://120.25.74.229:8006/ax_seat_db1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  20. username: root
  21. password: ROOT@taiji2022!
  22. slave1:
  23. type: com.alibaba.druid.pool.DruidDataSource
  24. driverClassName: com.mysql.cj.jdbc.Driver
  25. url: jdbc:mysql://120.25.74.229:8006/ax_seat_db1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  26. username: root
  27. password: ROOT@taiji2022!
  28. screen:
  29. type: com.alibaba.druid.pool.DruidDataSource
  30. driverClassName: com.mysql.cj.jdbc.Driver
  31. url: jdbc:mysql://120.25.74.229:8006/ax_seat_show?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  32. username: axdb
  33. password: Mysql@2022!
  34. enabled: false
  35. # 初始连接数
  36. initialSize: 5
  37. # 最小连接池数量
  38. minIdle: 10
  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
  51. testWhileIdle: true
  52. testOnBorrow: false
  53. testOnReturn: false
  54. webStatFilter:
  55. enabled: true
  56. statViewServlet:
  57. enabled: true
  58. # 设置白名单,不填则允许所有访问
  59. allow:
  60. url-pattern: /druid/*
  61. # 控制台管理用户名和密码
  62. login-username: seat
  63. login-password: 123456
  64. filter:
  65. stat:
  66. enabled: true
  67. # 慢SQL记录
  68. log-slow-sql: true
  69. slow-sql-millis: 1000
  70. merge-sql: true
  71. wall:
  72. config:
  73. multi-statement-allow: true
  74. rabbitmq:
  75. host: 47.111.231.31
  76. port: 5672
  77. username: rabbitmq
  78. password: root
  79. # redis 配置
  80. redis:
  81. # 地址
  82. host: 127.0.0.1
  83. #host: 192.168.1.107
  84. # 端口,默认为6379
  85. port: 6379
  86. # 数据库索引
  87. database: 0
  88. # 密码
  89. password:
  90. # 连接超时时间
  91. timeout: 10s
  92. lettuce:
  93. pool:
  94. # 连接池中的最小空闲连接
  95. min-idle: 0
  96. # 连接池中的最大空闲连接
  97. max-idle: 8
  98. # 连接池的最大数据库连接数
  99. max-active: 8
  100. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  101. max-wait: -1ms
  102. ##kafka
  103. kafka:
  104. bootstrap-servers: 120.25.232.213:9092
  105. consumer:
  106. auto-commit-interval: 1S
  107. # 该属性指定了消费者在读取一个没有偏移量的分区或者偏移量无效的情况下该作何处理:
  108. # latest(默认值)在偏移量无效的情况下,消费者将从最新的记录开始读取数据(在消费者启动之后生成的记录)
  109. # earliest :在偏移量无效的情况下,消费者将从起始位置读取分区的记录
  110. # 自动提交的时间间隔 在spring boot 2.X 版本中这里采用的是值的类型为Duration 需要符合特定的格式,如1S,1M,2H,5D
  111. # 该属性指定了消费者在读取一个没有偏移量的分区或者偏移量无效的情况下该作何处理:
  112. # latest(默认值)在偏移量无效的情况下,消费者将从最新的记录开始读取数据(在消费者启动之后生成的记录)
  113. # earliest :在偏移量无效的情况下,消费者将从起始位置读取分区的记录
  114. auto-offset-reset: latest
  115. # 是否自动提交偏移量,默认值是true,为了避免出现重复数据和数据丢失,可以把它设置为false,然后手动提交偏移量
  116. enable-auto-commit: false
  117. key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  118. value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  119. producer:
  120. retries: 3
  121. batch-size: 16384
  122. buffer-memory: 33554432
  123. key-serializer: org.apache.kafka.common.serialization.StringSerializer
  124. value-serializer: org.apache.kafka.common.serialization.StringSerializer
  125. # acks=0 : 生产者在成功写入消息之前不会等待任何来自服务器的响应。
  126. # acks=1 : 只要集群的首领节点收到消息,生产者就会收到一个来自服务器成功响应。
  127. # acks=all :只有当所有参与复制的节点全部收到消息时,生产者才会收到一个来自服务器的成功响应。
  128. acks: 1
  129. properties:
  130. security:
  131. protocol: SASL_PLAINTEXT
  132. sasl:
  133. mechanism: SCRAM-SHA-512
  134. jaas:
  135. config: 'org.apache.kafka.common.security.scram.ScramLoginModule required username="user01" password="user01";'
  136. listener:
  137. # 在侦听器容器中运行的线程数。
  138. concurrency: 5
  139. #listner负责ack,每调用一次,就立即commit
  140. ack-mode: manual_immediate
  141. missing-topics-fatal: false
  142. taiji:
  143. openservice:
  144. enable: false
  145. url: http://127.0.0.1:8080
  146. elasticsearch.rest:
  147. uris: 120.25.233.10:9200
  148. username: elastic #如果你设置了基于x-pack的验证就要填写账号和密码
  149. password: root@2022! #没有则不用配置
  150. connection-timeout: 100 #连接超时
  151. max-connection: 100 #最大连接数
  152. kafka:
  153. consumer:
  154. groupId: 202112301442_116
  155. taiji_ax_person_warning_record:
  156. group: ${random.uuid}
  157. topic: taiji_ax_person_warning_record
  158. ship_warning_record:
  159. topic: taiji_ax_ship_warning_record
  160. car_warning_record:
  161. topic: taiji_ax_car_warning_record
  162. multiple_warning_record:
  163. topic: taiji_ax_multiple_warning_record
  164. dynamic-ship-track-partition:
  165. topic: 'taiji_ax_ship_dynamic_fusion'
  166. group: ${random.uuid}
  167. partitions0: 0
  168. partitions1: 1
  169. partitions2: 2
  170. partitions3: 3
  171. partitions4: 4
  172. id-key: merge_id
  173. longitude-key: target_longitude
  174. latitude-key: target_latitude
  175. hlx_ax_ship_camera_structured_info:
  176. topic: 'hlx_ax_ship_camera_structured_info'
  177. producer:
  178. taiji_ax_warning_biz_data_sync_message:
  179. topic: 'taiji_ax_warning_biz_data_sync_message'
  180. esindex:
  181. state: 0
  182. ship_warning_record_index: index_seat_warning_ship_record
  183. shop:
  184. warning:
  185. record:
  186. ship: warningcode:ship:prod118
  187. car: warningcode:car:prod118
  188. person: warningcode:person:prod118
  189. multiple: warningcode:multiple:prod118
  190. #netty的配置信息
  191. webSocket:
  192. netty:
  193. port: 6999
  194. path: /webSocket
  195. readerIdleTime: 120 #读空闲超时时间设置(Netty心跳检测配置)
  196. writerIdleTime: 120 #写空闲超时时间设置(Netty心跳检测配置)
  197. allIdleTime: 120 #读写空闲超时时间设置(Netty心跳检测配置)
  198. # 海康威视kafka密钥
  199. infovision-kafka:
  200. ip: 74.10.28.97 #host
  201. port: 443 #port
  202. appkey: 20938619 #key
  203. secret: 2028DRKPt0ZzGocgCNJd #secret
  204. groupId:
  205. face: ${random.uuid}
  206. car: ${random.uuid}
  207. infovision-rabbit:
  208. groupId: ${random.uuid}
  209. # 海康威视全量密钥
  210. infovision:
  211. ip: 74.10.28.97 #host
  212. port: 443 #port
  213. appkey: 26491753 #key
  214. secret: nSWbgqChFBSdGPSnb59i #secret
  215. #海康
  216. #重点人员人脸库唯一标识
  217. key-personlibid: 1634291086413
  218. # 岸线-人脸布控库id
  219. face-personlibid: 16345463113275
  220. # 岸线-人员布控库id
  221. control-personlibid: 1634547649335
  222. # 岸线-重点车辆库id
  223. key-vehiclelibid: 1634546401514
  224. # 岸线-车辆布控库id
  225. control-vehiclelibid: 16345463664888
  226. # 巡逻防控 —— 轨迹查询开关
  227. patrolinfoboolean: false
  228. # 重点对象同步海康请求开关
  229. key-boolean: false
  230. # MQTT Config 开发环境默认关闭 mqtt协议已弃用,请勿开启
  231. mqtt:
  232. # host: tcp://74.10.28.97:1883
  233. host: tcp://localhost:1883
  234. userName: mqtt
  235. passWord: mqtt
  236. keepLiveTime: 100
  237. enabled: false
  238. cilentId: ${random.uuid}
  239. face:
  240. topic: artemis/event_face/3187675137/admin
  241. car:
  242. topic: artemis/event_veh/3204452353/admin
  243. workflow:
  244. auditRole:
  245. watchman: '派出所值班用户'
  246. policeRole: '派出所民警'
  247. detachmentPoliceRole: '支队民警'
  248. shipPoliceRole: '派出所船管民警'
  249. directorRole: '派出所所长'
  250. policeLeaderRole: '派出所领导'
  251. brigadeRole: '大队领导'
  252. detachmentRole: '支队领导'
  253. teamRole: '总队领导'
  254. commandAndDispatchRole: '指挥调度'
  255. auditModel:
  256. one: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.detachmentRole}_${workflow.auditRole.teamRole}
  257. two: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.brigadeRole}
  258. three: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.detachmentRole}
  259. four: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}
  260. five: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.detachmentRole}
  261. six: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.detachmentRole}_${workflow.auditRole.teamRole}
  262. seven: ${workflow.auditRole.detachmentPoliceRole}_${workflow.auditRole.detachmentRole}
  263. eight: ${workflow.auditRole.detachmentPoliceRole}_${workflow.auditRole.detachmentRole}_${workflow.auditRole.teamRole}
  264. nine: ${workflow.auditRole.policeRole}_${workflow.auditRole.policeLeaderRole}_${workflow.auditRole.brigadeRole}