application-prod.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://198.17.188.51:3306/cbwqpf?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. username: root
  11. password: cbwq!xintong
  12. # 从库数据源(嗅探)
  13. slaveais:
  14. # 从数据源开关/默认关闭
  15. enabled: true
  16. url: jdbc:mysql://198.17.23.18:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  17. username: js_test
  18. password: Js@123456
  19. # url: jdbc:mysql://198.17.25.31:3306/ais_database?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  20. # username: root
  21. # password: 1qaz!QAZ
  22. # 从库数据源(光谱)
  23. slaveso2:
  24. # 从数据源开关/默认关闭
  25. enabled: true
  26. url: jdbc:mysql://198.17.188.56:3306/ship?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  27. username: canal
  28. password: canal
  29. # 从库数据源(黑烟)
  30. slaveblack:
  31. # 从数据源开关/默认关闭
  32. enabled: true
  33. url: jdbc:mysql://198.17.23.20:3306/smoke_api?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  34. username: root_shipface
  35. password: '@P5zQQMbax8xx'
  36. # 初始连接数
  37. initialSize: 5
  38. # 最小连接池数量
  39. minIdle: 10
  40. # 最大连接池数量
  41. maxActive: 20
  42. # 配置获取连接等待超时的时间
  43. maxWait: 60000
  44. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  45. timeBetweenEvictionRunsMillis: 60000
  46. # 配置一个连接在池中最小生存的时间,单位是毫秒
  47. minEvictableIdleTimeMillis: 300000
  48. # 配置一个连接在池中最大生存的时间,单位是毫秒
  49. maxEvictableIdleTimeMillis: 900000
  50. # 配置检测连接是否有效
  51. validationQuery: SELECT 1 FROM DUAL
  52. testWhileIdle: true
  53. testOnBorrow: false
  54. testOnReturn: false
  55. webStatFilter:
  56. enabled: true
  57. statViewServlet:
  58. enabled: true
  59. # 设置白名单,不填则允许所有访问
  60. allow:
  61. url-pattern: /druid/*
  62. # 控制台管理用户名和密码
  63. login-username: ruoyi
  64. login-password: 123456
  65. filter:
  66. stat:
  67. enabled: true
  68. # 慢SQL记录
  69. log-slow-sql: true
  70. slow-sql-millis: 1000
  71. merge-sql: true
  72. wall:
  73. config:
  74. multi-statement-allow: true
  75. # redis 配置
  76. redis:
  77. # 地址
  78. host: localhost
  79. # 端口,默认为6379
  80. port: 6379
  81. # 数据库索引
  82. database: 0
  83. # 密码
  84. password: cbwq!xintong
  85. # 连接超时时间
  86. timeout: 10s
  87. lettuce:
  88. pool:
  89. # 连接池中的最小空闲连接
  90. min-idle: 0
  91. # 连接池中的最大空闲连接
  92. max-idle: 8
  93. # 连接池的最大数据库连接数
  94. max-active: 8
  95. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  96. max-wait: -1ms
  97. elasticsearch:
  98. port: 9200
  99. ip: 198.17.188.51
  100. type: http #访问方式
  101. numberOfReplicas: 2 #副本数
  102. numberOfShards: 5 #分片数
  103. defaultIndex: materials #默认加载索引
  104. searchTimeOut: 10 #搜索超时时长,单位:秒
  105. masterShardTimeOut: 1 #主分片执行更新的超时时长 ,单位:秒
  106. canal:
  107. configs:
  108. - hostname: 127.0.0.1
  109. port: 11111
  110. destination: heiyan
  111. - hostname: 127.0.0.1
  112. port: 11111
  113. destination: so2
  114. - hostname: 127.0.0.1
  115. port: 11111
  116. destination: ais
  117. # Swagger配置
  118. swagger:
  119. # 是否开启swagger
  120. enabled: false
  121. # 请求前缀
  122. pathMapping: /prod-api
  123. # 子平台
  124. black:
  125. snapImgUrl: http://198.17.23.29:8091/heiyandevice/api/shipface/snap/imgurl?id=
  126. # 第三方接口
  127. third:
  128. shipEepReportRecInfo: http://198.17.188.111:6201/huiyan/getShipEepReportRec # 船舶进出港记录
  129. shipBaseInfo: http://198.17.4.8:9004/getInfosByCondition # 船舶基本信息
  130. shipDynamicInfo: http://198.17.239.239:9004/getInfosByMmsi?mmsi= #船舶动态数据信息
  131. # userTokenInfo: http://198.17.188.64:80/slipperBack/portal/user/userInfo # 大交管用户信息
  132. userTokenInfo: http://198.17.48.74:8290/api/portal/user/userInfo # 大交管用户信息
  133. nwuserTokenInfo: http://198.17.48.74:8290/api/portal/user/userInfo # 内网大交管用户信息
  134. userLogin: http://198.17.48.74:8290/api/main/mobile/login # 综合平台登录接口
  135. system:
  136. security: third # 走何种校验方式 self自身用户密码校验;third第三方登录校验
  137. redirectUrl: http://198.17.188.50:8088/home
  138. ---
  139. ruoyi:
  140. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  141. profile: C:/cbwq/uploadPath