application.yml 3.9 KB

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