application.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. # 项目相关配置
  2. server-ip: 10.161.12.50
  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://${server-ip}:9080
  23. bakUrl: http://${server-ip}:9080
  24. wsUrl: ws://183.236.39.220:9080
  25. defaultPassword: yn5aq5Mt.106.tky
  26. imgUrl: http://${server-ip}:18801/picbucket
  27. recordUrl: http://183.236.39.220:8083
  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. # redis 配置
  78. redis:
  79. # 地址
  80. host: ${server-ip}
  81. # 端口,默认为6379
  82. port: 6379
  83. # 数据库索引
  84. database: 0
  85. # 密码
  86. password: tysfrz123
  87. # 连接超时时间
  88. timeout: 100s
  89. lettuce:
  90. pool:
  91. # 连接池中的最小空闲连接
  92. min-idle: 0
  93. # 连接池中的最大空闲连接
  94. max-idle: 8
  95. # 连接池的最大数据库连接数
  96. max-active: 8
  97. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  98. max-wait: -1ms
  99. # token配置
  100. token:
  101. # 令牌自定义标识
  102. header: Authorization
  103. # 令牌密钥
  104. secret: abcdefghijklmnopqrstuvwxyz
  105. # 令牌有效期(默认30分钟)
  106. expireTime: 120
  107. # app:token配置
  108. apptoken:
  109. # 令牌自定义标识
  110. header: Authorization
  111. # 令牌密钥
  112. secret: qwertyuiopasdfghjklzxcvbnm
  113. # 令牌有效期(默认15天)21600
  114. expireTime: 21600
  115. # MyBatis配置
  116. mybatis:
  117. # 搜索指定包别名
  118. typeAliasesPackage: com.ozs.**.domain
  119. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  120. mapperLocations: classpath*:mapper/**/*Mapper.xml
  121. # 加载全局的配置文件
  122. configLocation: classpath:mybatis/mybatis-config.xml
  123. # MyBatis-plus配置
  124. mybatis-plus:
  125. config-location: classpath:mybatis/mybatis-config.xml
  126. typeAliasesPackage: com.ozs.**.domain
  127. mapperLocations: classpath*:mapper/**/*Mapper.xml
  128. # PageHelper分页插件
  129. pagehelper:
  130. helperDialect: mysql
  131. supportMethodsArguments: true
  132. params: count=countSql
  133. # Swagger配置
  134. swagger:
  135. # 是否开启swagger
  136. enabled: true
  137. # 请求前缀
  138. pathMapping: /dev-api
  139. # 防止XSS攻击
  140. xss:
  141. # 过滤开关
  142. enabled: true
  143. # 排除链接(多个用逗号分隔)
  144. excludes: /system/notice
  145. # 匹配链接
  146. urlPatterns: /system/*,/monitor/*,/tool/*
  147. minio:
  148. endpoint: http://${server-ip}:18801 #Minio服务所在地址
  149. bucketName: picbucket #存储桶名称
  150. accessKey: admin #访问的key
  151. secretKey: admin123 #访问的秘钥
  152. mqtt:
  153. host: tcp://${server-ip}:1883
  154. userName: guest
  155. passWord: guest
  156. shot:
  157. urlAddress: http://${server-ip}:9080/snap/