application.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # 项目相关配置
  2. base:
  3. # 名称
  4. name: base
  5. # 版本
  6. version: 1.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /opt/streams/record/flv
  13. # profile: C:\base\uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: true
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: math
  18. # 摄像头配置
  19. ffmpegPath: /usr/local/bin/ffmpeg
  20. filePath: /opt/streams/record/flv/
  21. webUrl: http://124.70.58.209:9080
  22. bakUrl: http://124.70.58.209:9080
  23. wsUrl: ws://124.70.58.209:9080
  24. defaultPassword: yn5aq5Mt.106.tky
  25. imgUrl: http://124.70.58.209:18801/picbucket
  26. recordUrl: http://124.70.58.209:18811${server.servlet.context-path}
  27. isEnable: true
  28. # 开发环境配置
  29. server:
  30. # 服务器的HTTP端口,默认为8080
  31. port: 18819
  32. servlet:
  33. # 应用的访问路径
  34. context-path: /hazard
  35. tomcat:
  36. # tomcat的URI编码
  37. uri-encoding: UTF-8
  38. # 连接数满后的排队数,默认为100
  39. accept-count: 1000
  40. threads:
  41. # tomcat最大线程数,默认为200
  42. max: 800
  43. # Tomcat启动初始化的线程数,默认值10
  44. min-spare: 100
  45. # 日志配置
  46. logging:
  47. level:
  48. com.ozs: debug
  49. org.springframework: warn
  50. # 用户配置
  51. user:
  52. password:
  53. # 密码最大错误次数
  54. maxRetryCount: 5
  55. # 密码锁定时间(默认10分钟)
  56. lockTime: 10
  57. # Spring配置
  58. spring:
  59. # 资源信息
  60. messages:
  61. # 国际化资源文件路径
  62. basename: i18n/messages
  63. profiles:
  64. active: druid
  65. # 文件上传
  66. servlet:
  67. multipart:
  68. # 单个文件大小
  69. max-file-size: 50MB
  70. # 设置总上传的文件大小
  71. max-request-size: 100MB
  72. # 服务模块
  73. devtools:
  74. restart:
  75. # 热部署开关
  76. enabled: true
  77. #线程池配置
  78. task:
  79. execution:
  80. pool:
  81. #cpu内核数/2
  82. core-size: 50
  83. #cpu内核数 + 1
  84. max-size: 200
  85. # 超时秒数(s), 需要根据实际情况调整来达到业务目的
  86. # keep-alive: 10
  87. # redis 配置
  88. redis:
  89. # 地址
  90. host: 124.70.58.209
  91. # 端口,默认为6379
  92. port: 7001
  93. # 数据库索引
  94. database: 0
  95. # 密码
  96. password: 106@qwe123
  97. # 连接超时时间
  98. timeout: 300s
  99. lettuce:
  100. pool:
  101. # 连接池中的最小空闲连接
  102. min-idle: 0
  103. # 连接池中的最大空闲连接
  104. max-idle: 8
  105. # 连接池的最大数据库连接数
  106. max-active: 8
  107. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  108. max-wait: -1ms
  109. # token配置
  110. token:
  111. # 令牌自定义标识
  112. header: Authorization
  113. # 令牌密钥
  114. secret: abcdefghijklmnopqrstuvwxyz
  115. # 令牌有效期(默认24小时)
  116. expireTime: 4320
  117. # app:token配置
  118. apptoken:
  119. # 令牌自定义标识
  120. header: Authorization
  121. # 令牌密钥
  122. secret: qwertyuiopasdfghjklzxcvbnm
  123. # 令牌有效期(默认15天)21600
  124. expireTime: 21600
  125. # MyBatis配置
  126. mybatis:
  127. # 搜索指定包别名
  128. typeAliasesPackage: com.ozs.**.domain
  129. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  130. mapperLocations: classpath*:mapper/**/*Mapper.xml
  131. # 加载全局的配置文件
  132. configLocation: classpath:mybatis/mybatis-config.xml
  133. # MyBatis-plus配置
  134. mybatis-plus:
  135. config-location: classpath:mybatis/mybatis-config.xml
  136. typeAliasesPackage: com.ozs.**.domain
  137. mapperLocations: classpath*:mapper/**/*Mapper.xml
  138. # PageHelper分页插件
  139. pagehelper:
  140. helperDialect: mysql
  141. supportMethodsArguments: true
  142. params: count=countSql
  143. # 防止XSS攻击
  144. xss:
  145. # 过滤开关
  146. enabled: true
  147. # 排除链接(多个用逗号分隔)
  148. excludes: /system/notice
  149. # 匹配链接
  150. urlPatterns: /system/*,/monitor/*,/tool/*
  151. minio:
  152. endpoint: http://124.70.58.209:18801 #Minio服务所在地址
  153. bucketName: picbucket #存储桶名称
  154. accessKey: admin #访问的key
  155. secretKey: jt73W-+xhd5 #访问的秘钥
  156. file:
  157. #头像存储目录
  158. avatarUrl: /data/service/avatar/
  159. #文件访问前缀
  160. filreUrl: http://124.71.171.71:18878
  161. mqtt:
  162. host: tcp://124.70.58.209:1883
  163. userName: guest
  164. passWord: guest
  165. shot:
  166. urlAddress: http://124.70.58.209:9080/snap/
  167. storeAddress: camera_picture
  168. # 是否为主节点, 一个主节点设置为TRUE, 其他都要设定为FALSE
  169. isMaster: true