application.yml 3.9 KB

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