application.yml 3.9 KB

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