application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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/record/flv
  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:8083${server.servlet.context-path}
  28. # 开发环境配置
  29. server:
  30. # 服务器的HTTP端口,默认为8080
  31. port: 8081
  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. # redis 配置
  86. redis:
  87. # 地址
  88. host: ${server-ip}
  89. # 端口,默认为6379
  90. port: 6379
  91. # 数据库索引
  92. database: 0
  93. # 密码
  94. password: +xLHQ73t@q
  95. # 连接超时时间
  96. timeout: 300s
  97. lettuce:
  98. pool:
  99. # 连接池中的最小空闲连接
  100. min-idle: 0
  101. # 连接池中的最大空闲连接
  102. max-idle: 8
  103. # 连接池的最大数据库连接数
  104. max-active: 8
  105. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  106. max-wait: -1ms
  107. # token配置
  108. token:
  109. # 令牌自定义标识
  110. header: Authorization
  111. # 令牌密钥
  112. secret: abcdefghijklmnopqrstuvwxyz
  113. # 令牌有效期(默认30分钟)
  114. expireTime: 120
  115. # app:token配置
  116. apptoken:
  117. # 令牌自定义标识
  118. header: Authorization
  119. # 令牌密钥
  120. secret: qwertyuiopasdfghjklzxcvbnm
  121. # 令牌有效期(默认15天)21600
  122. expireTime: 21600
  123. # MyBatis配置
  124. mybatis:
  125. # 搜索指定包别名
  126. typeAliasesPackage: com.ozs.**.domain
  127. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  128. mapperLocations: classpath*:mapper/**/*Mapper.xml
  129. # 加载全局的配置文件
  130. configLocation: classpath:mybatis/mybatis-config.xml
  131. # MyBatis-plus配置
  132. mybatis-plus:
  133. config-location: classpath:mybatis/mybatis-config.xml
  134. typeAliasesPackage: com.ozs.**.domain
  135. mapperLocations: classpath*:mapper/**/*Mapper.xml
  136. # PageHelper分页插件
  137. pagehelper:
  138. helperDialect: mysql
  139. supportMethodsArguments: true
  140. params: count=countSql
  141. # 防止XSS攻击
  142. xss:
  143. # 过滤开关
  144. enabled: true
  145. # 排除链接(多个用逗号分隔)
  146. excludes: /system/notice
  147. # 匹配链接
  148. urlPatterns: /system/*,/monitor/*,/tool/*
  149. minio:
  150. endpoint: http://10.161.12.52:18801 #Minio服务所在地址
  151. bucketName: picbucket #存储桶名称
  152. accessKey: admin #访问的key
  153. secretKey: jt73W-+xhd5 #访问的秘钥
  154. mqtt:
  155. host: tcp://${server-ip}:1883
  156. userName: camera-update
  157. passWord: 05J5+mtYzx.Ry
  158. shot:
  159. urlAddress: http://10.161.12.50:9080/snap/
  160. storeAddress: camera_picture
  161. # 是否为主节点, 一个主节点设置为TRUE, 其他都要设定为FALSE
  162. isMaster: false