application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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/ffmpeg/bin/ffmpeg
  20. filePath: /opt/streams/record/flv/
  21. webUrl: http://124.70.58.209:18812
  22. bakUrl: http://124.70.58.209:18891
  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. # 开发环境配置
  28. server:
  29. # 服务器的HTTP端口,默认为8080
  30. port: 18819
  31. servlet:
  32. # 应用的访问路径
  33. context-path: /hazard
  34. tomcat:
  35. # tomcat的URI编码
  36. uri-encoding: UTF-8
  37. # 连接数满后的排队数,默认为100
  38. accept-count: 1000
  39. threads:
  40. # tomcat最大线程数,默认为200
  41. max: 800
  42. # Tomcat启动初始化的线程数,默认值10
  43. min-spare: 100
  44. # 日志配置
  45. logging:
  46. level:
  47. com.ozs: debug
  48. org.springframework: warn
  49. # 用户配置
  50. user:
  51. password:
  52. # 密码最大错误次数
  53. maxRetryCount: 5
  54. # 密码锁定时间(默认10分钟)
  55. lockTime: 10
  56. # Spring配置
  57. spring:
  58. # 资源信息
  59. messages:
  60. # 国际化资源文件路径
  61. basename: i18n/messages
  62. profiles:
  63. active: druid
  64. # 文件上传
  65. servlet:
  66. multipart:
  67. # 单个文件大小
  68. max-file-size: 50MB
  69. # 设置总上传的文件大小
  70. max-request-size: 100MB
  71. # 服务模块
  72. devtools:
  73. restart:
  74. # 热部署开关
  75. enabled: true
  76. #线程池配置
  77. task:
  78. execution:
  79. pool:
  80. #cpu内核数/2
  81. core-size: 4
  82. #cpu内核数 + 1
  83. max-size: 8
  84. # redis 配置
  85. redis:
  86. # 地址
  87. host: 124.70.58.209
  88. # 端口,默认为6379
  89. port: 7001
  90. # 数据库索引
  91. database: 0
  92. # 密码
  93. password: 106@qwe123
  94. # 连接超时时间
  95. timeout: 100s
  96. lettuce:
  97. pool:
  98. # 连接池中的最小空闲连接
  99. min-idle: 0
  100. # 连接池中的最大空闲连接
  101. max-idle: 8
  102. # 连接池的最大数据库连接数
  103. max-active: 8
  104. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  105. max-wait: -1ms
  106. # token配置
  107. token:
  108. # 令牌自定义标识
  109. header: Authorization
  110. # 令牌密钥
  111. secret: abcdefghijklmnopqrstuvwxyz
  112. # 令牌有效期(默认30分钟)
  113. expireTime: 120
  114. # app:token配置
  115. apptoken:
  116. # 令牌自定义标识
  117. header: Authorization
  118. # 令牌密钥
  119. secret: qwertyuiopasdfghjklzxcvbnm
  120. # 令牌有效期(默认15天)21600
  121. expireTime: 21600
  122. # MyBatis配置
  123. mybatis:
  124. # 搜索指定包别名
  125. typeAliasesPackage: com.ozs.**.domain
  126. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  127. mapperLocations: classpath*:mapper/**/*Mapper.xml
  128. # 加载全局的配置文件
  129. configLocation: classpath:mybatis/mybatis-config.xml
  130. # MyBatis-plus配置
  131. mybatis-plus:
  132. config-location: classpath:mybatis/mybatis-config.xml
  133. typeAliasesPackage: com.ozs.**.domain
  134. mapperLocations: classpath*:mapper/**/*Mapper.xml
  135. # PageHelper分页插件
  136. pagehelper:
  137. helperDialect: mysql
  138. supportMethodsArguments: true
  139. params: count=countSql
  140. # 防止XSS攻击
  141. xss:
  142. # 过滤开关
  143. enabled: true
  144. # 排除链接(多个用逗号分隔)
  145. excludes: /system/notice
  146. # 匹配链接
  147. urlPatterns: /system/*,/monitor/*,/tool/*
  148. minio:
  149. endpoint: http://124.70.58.209:18801 #Minio服务所在地址
  150. bucketName: picbucket #存储桶名称
  151. accessKey: admin #访问的key
  152. secretKey: jt73W-+xhd5 #访问的秘钥
  153. file:
  154. #头像存储目录
  155. avatarUrl: /data/service/avatar/
  156. #文件访问前缀
  157. filreUrl: http://124.71.171.71:18878
  158. mqtt:
  159. host: tcp://124.70.58.209:1883
  160. userName: guest
  161. passWord: guest
  162. shot:
  163. urlAddress: http://124.70.58.209:9080/snap/
  164. storeAddress: camera_picture