application-dev.yml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. # 项目相关配置
  2. application:
  3. # 名称
  4. name: IOTS
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/yunfei/farmwork/uploadPath,Linux配置 /home/yunfei/farmwork/uploadPath)
  12. profile: /data/AGMP/
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 顶级菜单的父Id
  18. topMenuparentid: 0 #9a9d5a42-0803-5761-454c-177834ea4408
  19. # 顶级部门的父Id
  20. topDeptparentid: 8d4b26eb-1811-17a6-8dd1-127ea32c7cf8
  21. # 开发环境配置
  22. server:
  23. # 服务器的HTTP端口,默认为8021
  24. port: 8035
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # 连接数满后的排队数,默认为100
  32. accept-count: 1000
  33. threads:
  34. # tomcat最大线程数,默认为200
  35. max: 800
  36. # Tomcat启动初始化的线程数,默认值10
  37. min-spare: 100
  38. # 日志配置
  39. logging:
  40. level:
  41. com.yunfeiyun: INFO
  42. org.springframework: INFO
  43. # 用户配置
  44. user:
  45. password:
  46. # 密码最大错误次数
  47. maxRetryCount: 5
  48. # 密码锁定时间(默认10分钟)
  49. lockTime: 10
  50. # Spring配置
  51. spring:
  52. data:
  53. mongodb:
  54. uri: mongodb://root:Yf%40123456@192.168.1.228:57017/com_yunfeiyun_iot
  55. # 资源信息
  56. messages:
  57. # 国际化资源文件路径
  58. basename: i18n/messages
  59. datasource:
  60. type: com.alibaba.druid.pool.DruidDataSource
  61. driverClassName: com.mysql.cj.jdbc.Driver
  62. druid:
  63. # 主库数据源
  64. master:
  65. url: jdbc:mysql://192.168.1.228:3306/com_yunfeiyun_agmp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
  66. username: root
  67. password: 123456
  68. # 从库数据源
  69. slave:
  70. # 从数据源开关/默认关闭
  71. enabled: false
  72. url:
  73. username:
  74. password:
  75. # 初始连接数
  76. initialSize: 5
  77. # 最小连接池数量
  78. minIdle: 10
  79. # 最大连接池数量
  80. maxActive: 20
  81. # 配置获取连接等待超时的时间
  82. maxWait: 60000
  83. # 配置连接超时时间
  84. connectTimeout: 30000
  85. # 配置网络超时时间
  86. socketTimeout: 60000
  87. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  88. timeBetweenEvictionRunsMillis: 60000
  89. # 配置一个连接在池中最小生存的时间,单位是毫秒
  90. minEvictableIdleTimeMillis: 300000
  91. # 配置一个连接在池中最大生存的时间,单位是毫秒
  92. maxEvictableIdleTimeMillis: 900000
  93. # 配置检测连接是否有效
  94. validationQuery: SELECT 1 FROM DUAL
  95. testWhileIdle: true
  96. testOnBorrow: false
  97. testOnReturn: false
  98. webStatFilter:
  99. enabled: true
  100. statViewServlet:
  101. enabled: true
  102. # 设置白名单,不填则允许所有访问
  103. allow:
  104. url-pattern: /druid/*
  105. # 控制台管理用户名和密码
  106. login-username: ruoyi
  107. login-password: 123456
  108. filter:
  109. stat:
  110. enabled: true
  111. # 慢SQL记录
  112. log-slow-sql: true
  113. slow-sql-millis: 1000
  114. merge-sql: true
  115. wall:
  116. config:
  117. multi-statement-allow: true
  118. # 文件上传
  119. servlet:
  120. multipart:
  121. # 单个文件大小
  122. max-file-size: 10MB
  123. # 设置总上传的文件大小
  124. max-request-size: 20MB
  125. # 服务模块
  126. devtools:
  127. restart:
  128. # 热部署开关
  129. enabled: true
  130. rabbitmq:
  131. # 在物联网系统中 agmp 是 iotm 和 iots 之间通信使用
  132. agmp:
  133. host: 192.168.1.230
  134. port: 5672
  135. username: admin
  136. password: admin
  137. virtual-host: /agmp-sass-iot
  138. connection-timeout: 15000
  139. publisher-returns: true
  140. enabled: true
  141. # redis 配置
  142. redis:
  143. # 地址
  144. host: 192.168.1.228
  145. # 端口,默认为6379
  146. port: 6379
  147. # 数据库索引
  148. database: 0
  149. # 密码
  150. password: 123456
  151. # 连接超时时间
  152. timeout: 10s
  153. lettuce:
  154. pool:
  155. # 连接池中的最小空闲连接
  156. min-idle: 0
  157. # 连接池中的最大空闲连接
  158. max-idle: 8
  159. # 连接池的最大数据库连接数
  160. max-active: 8
  161. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  162. max-wait: -1ms
  163. # token配置
  164. token:
  165. # 令牌自定义标识
  166. header: Authorization
  167. # 令牌密钥
  168. secret: abcdefghijklmnopqrstuvwxyz
  169. # 令牌有效期(默认30分钟)
  170. expireTime: 30
  171. # MyBatis配置
  172. mybatis:
  173. # 搜索指定包别名
  174. typeAliasesPackage: com.yunfeiyun.**.domain
  175. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  176. mapperLocations: classpath*:mapper/**/*Mapper.xml
  177. # 加载全局的配置文件
  178. configLocation: classpath:mybatis/mybatis-config.xml
  179. # PageHelper分页插件
  180. pagehelper:
  181. helperDialect: mysql
  182. supportMethodsArguments: true
  183. params: count=countSql
  184. # Swagger配置
  185. swagger:
  186. # 是否开启swagger
  187. enabled: true
  188. # 请求前缀
  189. pathMapping: /dev-api
  190. # 防止XSS攻击
  191. xss:
  192. # 过滤开关
  193. enabled: true
  194. # 排除链接(多个用逗号分隔)
  195. excludes: /system/notice
  196. # 匹配链接
  197. urlPatterns: /system/*,/tool/*
  198. network:
  199. ipaddrLogin: http://192.168.0.228
  200. ipaddrSso: http://192.168.0.228
  201. vueport: 7000
  202. ssoport: 9002
  203. icsport: 8023
  204. wprport: 8027
  205. fmsIp: localhost
  206. fmsPort: 8021
  207. portal:
  208. ssoEnabled: true
  209. ssoLoginUrl: ${network.ipaddrLogin}:${network.vueport}/portal/login?redirect=
  210. ssoTokenUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/verifyToken
  211. ssoSessionUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/registerSession
  212. ssoLogoutUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/logout
  213. appLogoutUrl: ${network.ipaddrSso}:${network.icsport}/sso/logoutToken
  214. syncEnabled: true
  215. orgEnabled: true
  216. policy:
  217. # localSpace(本地空间), cloud 资源服务器
  218. upload:
  219. uploadType: localSpace
  220. ossconfig:
  221. ossType: 1
  222. ossCloud:
  223. aliYun:
  224. accessType: 1
  225. aliyunDomain: https://yunfei-agm.oss-cn-hangzhou.aliyuncs.com
  226. aliyunPrefix: agmp
  227. aliyunEndPoint: oss-cn-hangzhou.aliyuncs.com
  228. aliyunAccessKeyId: LTAI4G7tFh5Nk4KXZoSPk1D8
  229. aliyunAccessKeySecret: RV4S2SfbLPoFNjlI4uIOoA0J1LQPQc
  230. aliyunBucketName: yunfei-agm
  231. qCloud:
  232. qcloudDomain:
  233. qcloudPrefix:
  234. qcloudSecretId:
  235. qcloudSecretKey:
  236. qcloudBucketName: yunfei-agm
  237. monitor:
  238. uploadType: cloud
  239. # table(表), cache(缓存)
  240. water: table
  241. queue:
  242. productRouter:
  243. consumeRouter:
  244. ackEnabled: true
  245. tcp:
  246. netty:
  247. port: 58100
  248. obck:
  249. port: 9000
  250. iot:
  251. customerId: 1
  252. sassAble: false
  253. ai:
  254. rt:
  255. callBackUrl: http://192.168.1.228:7000/iotsprod-api/ai/mc/camera/subscribe/image/callback
  256. warnVer: 3