application.yml 3.8 KB

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