application.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. # 获取ip地址开关
  14. addressEnabled: true
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # sqlType: kingbasees # 数据库类型
  18. sqlType: dm # 数据库类型
  19. dbname: vehicle #数据库名
  20. #图片路径前缀
  21. imgUrl: http://10.48.36.43:18801/picbucket
  22. ffmpegPath: /usr/bin/ffmpeg
  23. filePath: /opt/streams/record/flv/
  24. webUrl: http://10.48.36.47:18812
  25. bakUrl: http://10.48.36.47:18891
  26. wsUrl: ws://10.48.36.47:9080
  27. historyUrl: http://10.48.36.47:18812
  28. recordUrl: http://10.48.36.47:18810${server.servlet.context-path}
  29. env: 1
  30. hkUrl: http://10:122:1:22:1443
  31. rtmpUrl: rtmp://10.48.36.47:1935
  32. bakUrlRtsp: rtsp://10.48.36.47:8554
  33. server:
  34. # 服务器的HTTP端口,默认为8080
  35. port: 18810
  36. servlet:
  37. # 应用的访问路径
  38. context-path: /
  39. tomcat:
  40. # tomcat的URI编码
  41. uri-encoding: UTF-8
  42. # 连接数满后的排队数,默认为100
  43. accept-count: 1000
  44. threads:
  45. # tomcat最大线程数,默认为200
  46. max: 800
  47. # Tomcat启动初始化的线程数,默认值10
  48. min-spare: 100
  49. # 日志配置
  50. logging:
  51. level:
  52. com.ozs: debug
  53. org.springframework: warn
  54. # 用户配置
  55. user:
  56. password:
  57. # 密码最大错误次数
  58. maxRetryCount: 5
  59. # 密码锁定时间(默认10分钟)
  60. lockTime: 10
  61. # Spring配置
  62. spring:
  63. # 资源信息
  64. messages:
  65. # 国际化资源文件路径
  66. basename: i18n/messages
  67. profiles:
  68. # active: kdruid
  69. active: dmdruid
  70. # 文件上传
  71. servlet:
  72. multipart:
  73. # 单个文件大小
  74. max-file-size: 1000MB
  75. # 设置总上传的文件大小
  76. max-request-size: 1000MB
  77. # 服务模块
  78. devtools:
  79. restart:
  80. # 热部署开关
  81. enabled: true
  82. # redis 配置
  83. redis:
  84. # 地址
  85. host: 10.48.36.43
  86. # 端口,默认为6379
  87. port: 7001
  88. # 数据库索引
  89. database: 1
  90. # 密码
  91. password: +xLHQ73t@q
  92. # 连接超时时间
  93. timeout: 100s
  94. lettuce:
  95. pool:
  96. # 连接池中的最小空闲连接
  97. min-idle: 0
  98. # 连接池中的最大空闲连接
  99. max-idle: 8
  100. # 连接池的最大数据库连接数
  101. max-active: 8
  102. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  103. max-wait: -1ms
  104. # token配置
  105. token:
  106. # 令牌自定义标识
  107. header: Authorization
  108. # 令牌密钥
  109. secret: abcdefghijklmnopqrstuvwxyz
  110. # 令牌有效期(默认30分钟)
  111. expireTime: 30
  112. apptoken:
  113. # 令牌自定义标识
  114. header: Authorization
  115. # 令牌密钥
  116. secret: qwertyuiopasdfghjklzxcvbnm
  117. # 令牌有效期(默认15天)
  118. expireTime: 21600
  119. # MyBatis配置
  120. mybatis:
  121. # 搜索指定包别名
  122. typeAliasesPackage: com.ozs.**.domain
  123. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  124. mapperLocations: classpath*:mapper/**/*Mapper.xml
  125. # 加载全局的配置文件
  126. configLocation: classpath:mybatis/mybatis-config.xml
  127. # MyBatis-plus配置
  128. mybatis-plus:
  129. config-location: classpath:mybatis/mybatis-config.xml
  130. typeAliasesPackage: com.ozs.**.domain
  131. mapperLocations: classpath*:mapper/**/*Mapper.xml
  132. # PageHelper分页插件
  133. pagehelper:
  134. helperDialect: mysql
  135. supportMethodsArguments: true
  136. params: count=countSql
  137. # Swagger配置
  138. swagger:
  139. # 是否开启swagger
  140. enabled: true
  141. # 请求前缀
  142. pathMapping: /dev-api
  143. # 防止XSS攻击
  144. xss:
  145. # 过滤开关
  146. enabled: true
  147. # 排除链接(多个用逗号分隔)
  148. excludes: /system/notice
  149. # 匹配链接
  150. urlPatterns: /system/*,/monitor/*,/tool/*
  151. minio:
  152. endpoint: http://10.48.36.43:18801 #Minio服务所在地址
  153. bucketName: picbucket #存储桶名称
  154. accessKey: admin #访问的key
  155. secretKey: jt73W-+xhd5 #访问的秘钥
  156. artemis:
  157. host: 10.48.253.21:1443
  158. appKey: 20110033
  159. appSecret: QoGESFXOYrC68ixIS7wo