application.yml 4.1 KB

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