application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # 项目相关配置
  2. server-ip: 10.161.12.60
  3. base:
  4. # 名称
  5. name: base
  6. # 版本
  7. version: 3.8.5
  8. # 版权年份
  9. copyrightYear: 2023
  10. # 实例演示开关
  11. demoEnabled: true
  12. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  13. profile: /opt/streams/record/flv
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: math
  18. #图片路径前缀
  19. imgUrl: http://10.161.12.52:18801/picbucket
  20. # 开发环境配置
  21. server:
  22. # 服务器的HTTP端口,默认为8080
  23. port: 8082
  24. servlet:
  25. # 应用的访问路径
  26. context-path: /
  27. tomcat:
  28. # tomcat的URI编码
  29. uri-encoding: UTF-8
  30. # 连接数满后的排队数,默认为100
  31. accept-count: 1000
  32. threads:
  33. # tomcat最大线程数,默认为200
  34. max: 800
  35. # Tomcat启动初始化的线程数,默认值10
  36. min-spare: 100
  37. # 日志配置
  38. logging:
  39. level:
  40. com.ozs: debug
  41. org.springframework: warn
  42. # 用户配置
  43. user:
  44. password:
  45. # 密码最大错误次数
  46. maxRetryCount: 5
  47. # 密码锁定时间(默认10分钟)
  48. lockTime: 10
  49. # Spring配置
  50. spring:
  51. # 资源信息
  52. messages:
  53. # 国际化资源文件路径
  54. basename: i18n/messages
  55. profiles:
  56. active: druid
  57. # 文件上传
  58. servlet:
  59. multipart:
  60. # 单个文件大小
  61. max-file-size: 10MB
  62. # 设置总上传的文件大小
  63. max-request-size: 20MB
  64. # 服务模块
  65. devtools:
  66. restart:
  67. # 热部署开关
  68. enabled: true
  69. # redis 配置
  70. redis:
  71. # 地址
  72. host: ${server-ip}
  73. # 端口,默认为6379
  74. port: 6379
  75. # 数据库索引
  76. database: 0
  77. # 密码
  78. password: +xLHQ73t@q
  79. # 连接超时时间
  80. timeout: 100s
  81. lettuce:
  82. pool:
  83. # 连接池中的最小空闲连接
  84. min-idle: 0
  85. # 连接池中的最大空闲连接
  86. max-idle: 8
  87. # 连接池的最大数据库连接数
  88. max-active: 8
  89. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  90. max-wait: -1ms
  91. # web:token配置
  92. token:
  93. # 令牌自定义标识
  94. header: Authorization
  95. # 令牌密钥
  96. secret: abcdefghijklmnopqrstuvwxyz
  97. # 令牌有效期(默认30分钟)
  98. expireTime: 30
  99. # app:token配置
  100. apptoken:
  101. # 令牌自定义标识
  102. header: Authorization
  103. # 令牌密钥
  104. secret: qwertyuiopasdfghjklzxcvbnm
  105. # 令牌有效期(默认15天)
  106. expireTime: 21600
  107. # MyBatis配置
  108. mybatis:
  109. # 搜索指定包别名
  110. typeAliasesPackage: com.ozs.**.domain
  111. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  112. mapperLocations: classpath*:mapper/**/*Mapper.xml
  113. # 加载全局的配置文件
  114. configLocation: classpath:mybatis/mybatis-config.xml
  115. # MyBatis-plus配置
  116. mybatis-plus:
  117. config-location: classpath:mybatis/mybatis-config.xml
  118. typeAliasesPackage: com.ozs.**.domain
  119. mapperLocations: classpath*:mapper/**/*Mapper.xml
  120. # PageHelper分页插件
  121. pagehelper:
  122. helperDialect: mysql
  123. supportMethodsArguments: true
  124. params: count=countSql
  125. # 防止XSS攻击
  126. xss:
  127. # 过滤开关
  128. enabled: true
  129. # 排除链接(多个用逗号分隔)
  130. excludes: /system/notice
  131. # 匹配链接
  132. urlPatterns: /system/*,/monitor/*,/tool/*
  133. minio:
  134. endpoint: http://10.161.12.52:18801 #Minio服务所在地址
  135. bucketName: picbucket #存储桶名称
  136. accessKey: admin #访问的key
  137. secretKey: jt73W-+xhd5 #访问的秘钥
  138. sdk:
  139. publish: http://${server-ip}:8081/hazard/sdk/publish