application-uat.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. # 项目相关配置
  2. application:
  3. # 名称
  4. name: IOTS
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/yunfei/farmwork/uploadPath,Linux配置 /home/yunfei/farmwork/uploadPath)
  12. profile: /data/AGMP/iots
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 顶级菜单的父Id
  18. topMenuparentid: 0 #9a9d5a42-0803-5761-454c-177834ea4408
  19. # 顶级部门的父Id
  20. topDeptparentid: 8d4b26eb-1811-17a6-8dd1-127ea32c7cf8
  21. # 开发环境配置
  22. server:
  23. # 服务器的HTTP端口,默认为8021
  24. port: 8035
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # 连接数满后的排队数,默认为100
  32. accept-count: 1000
  33. threads:
  34. # tomcat最大线程数,默认为200
  35. max: 800
  36. # Tomcat启动初始化的线程数,默认值10
  37. min-spare: 100
  38. # 日志配置
  39. logging:
  40. level:
  41. com.yunfeiyun: debug
  42. org.springframework: warn
  43. # 用户配置
  44. user:
  45. password:
  46. # 密码最大错误次数
  47. maxRetryCount: 5
  48. # 密码锁定时间(默认10分钟)
  49. lockTime: 10
  50. # Spring配置
  51. spring:
  52. data:
  53. mongodb:
  54. uri: mongodb://root:Yf%40123456@192.168.1.78:57017/com_yunfeiyun_iot
  55. # 资源信息
  56. messages:
  57. # 国际化资源文件路径
  58. basename: i18n/messages
  59. datasource:
  60. type: com.alibaba.druid.pool.DruidDataSource
  61. driverClassName: com.mysql.cj.jdbc.Driver
  62. druid:
  63. # 主库数据源
  64. master:
  65. url: jdbc:mysql://192.168.1.78:3306/uat_com_yunfeiyun_agmp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
  66. username: root
  67. password: Yf@123456
  68. # 从库数据源
  69. slave:
  70. # 从数据源开关/默认关闭
  71. enabled: false
  72. url:
  73. username:
  74. password:
  75. # 初始连接数
  76. initialSize: 5
  77. # 最小连接池数量
  78. minIdle: 10
  79. # 最大连接池数量
  80. maxActive: 20
  81. # 配置获取连接等待超时的时间
  82. maxWait: 60000
  83. # 配置连接超时时间
  84. connectTimeout: 30000
  85. # 配置网络超时时间
  86. socketTimeout: 60000
  87. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  88. timeBetweenEvictionRunsMillis: 60000
  89. # 配置一个连接在池中最小生存的时间,单位是毫秒
  90. minEvictableIdleTimeMillis: 300000
  91. # 配置一个连接在池中最大生存的时间,单位是毫秒
  92. maxEvictableIdleTimeMillis: 900000
  93. # 配置检测连接是否有效
  94. validationQuery: SELECT 1 FROM DUAL
  95. testWhileIdle: true
  96. testOnBorrow: false
  97. testOnReturn: false
  98. webStatFilter:
  99. enabled: true
  100. statViewServlet:
  101. enabled: true
  102. # 设置白名单,不填则允许所有访问
  103. allow:
  104. url-pattern: /druid/*
  105. # 控制台管理用户名和密码
  106. login-username: ruoyi
  107. login-password: 123456
  108. filter:
  109. stat:
  110. enabled: true
  111. # 慢SQL记录
  112. log-slow-sql: true
  113. slow-sql-millis: 1000
  114. merge-sql: true
  115. wall:
  116. config:
  117. multi-statement-allow: true
  118. # 文件上传
  119. servlet:
  120. multipart:
  121. # 单个文件大小
  122. max-file-size: 10MB
  123. # 设置总上传的文件大小
  124. max-request-size: 20MB
  125. # 服务模块
  126. devtools:
  127. restart:
  128. # 热部署开关
  129. enabled: true
  130. rabbitmq:
  131. host: 192.168.1.78
  132. port: 55763
  133. username: admin
  134. password: admin
  135. ##virtual-host: /agmpbs
  136. virtual-host: /iot_uat
  137. connection-timeout: 15000
  138. publisher-returns: true
  139. enabled: true
  140. # redis 配置
  141. redis:
  142. # 地址
  143. host: 192.168.1.78
  144. # 端口,默认为6379
  145. port: 6379
  146. # 数据库索引
  147. database: 0
  148. # 密码
  149. password: Yf@123456
  150. # 连接超时时间
  151. timeout: 10s
  152. lettuce:
  153. pool:
  154. # 连接池中的最小空闲连接
  155. min-idle: 0
  156. # 连接池中的最大空闲连接
  157. max-idle: 8
  158. # 连接池的最大数据库连接数
  159. max-active: 8
  160. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  161. max-wait: -1ms
  162. # token配置
  163. token:
  164. # 令牌自定义标识
  165. header: Authorization
  166. # 令牌密钥
  167. secret: abcdefghijklmnopqrstuvwxyz
  168. # 令牌有效期(默认30分钟)
  169. expireTime: 30
  170. # MyBatis配置
  171. mybatis:
  172. # 搜索指定包别名
  173. typeAliasesPackage: com.yunfeiyun.**.domain
  174. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  175. mapperLocations: classpath*:mapper/**/*Mapper.xml
  176. # 加载全局的配置文件
  177. configLocation: classpath:mybatis/mybatis-config.xml
  178. # PageHelper分页插件
  179. pagehelper:
  180. helperDialect: mysql
  181. supportMethodsArguments: true
  182. params: count=countSql
  183. # Swagger配置
  184. swagger:
  185. # 是否开启swagger
  186. enabled: true
  187. # 请求前缀
  188. pathMapping: /dev-api
  189. # 防止XSS攻击
  190. xss:
  191. # 过滤开关
  192. enabled: true
  193. # 排除链接(多个用逗号分隔)
  194. excludes: /system/notice
  195. # 匹配链接
  196. urlPatterns: /system/*,/tool/*
  197. network:
  198. ipaddrLogin: http://192.168.1.78
  199. ipaddrSso: http://192.168.1.78
  200. vueport: 7000
  201. ssoport: 9002
  202. icsport: 8023
  203. wprport: 8027
  204. fmsIp: localhost
  205. fmsPort: 8021
  206. portal:
  207. ssoEnabled: true
  208. ssoLoginUrl: ${network.ipaddrLogin}:${network.vueport}/portal/login?redirect=
  209. ssoTokenUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/verifyToken
  210. ssoSessionUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/registerSession
  211. ssoLogoutUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/logout
  212. appLogoutUrl: ${network.ipaddrSso}:${network.icsport}/sso/logoutToken
  213. syncEnabled: true
  214. orgEnabled: true
  215. policy:
  216. # localSpace(本地空间), cloud 资源服务器
  217. upload:
  218. uploadType: localSpace
  219. ossconfig:
  220. ossType: 1
  221. ossCloud:
  222. aliYun:
  223. accessType: 1
  224. aliyunDomain: https://yunfei-agm.oss-cn-hangzhou.aliyuncs.com
  225. aliyunPrefix: agmp
  226. aliyunEndPoint: oss-cn-hangzhou.aliyuncs.com
  227. aliyunAccessKeyId: LTAI4G7tFh5Nk4KXZoSPk1D8
  228. aliyunAccessKeySecret: RV4S2SfbLPoFNjlI4uIOoA0J1LQPQc
  229. aliyunBucketName: yunfei-agm
  230. qCloud:
  231. qcloudDomain:
  232. qcloudPrefix:
  233. qcloudSecretId:
  234. qcloudSecretKey:
  235. qcloudBucketName: yunfei-agm
  236. # table(表), cache(缓存)
  237. water: table
  238. queue:
  239. productRouter:
  240. consumeRouter:
  241. ackEnabled: true
  242. tcp:
  243. netty:
  244. port: 503
  245. iot:
  246. customerId: 1
  247. sassAble: false
  248. ai:
  249. rt:
  250. callBackUrl: http://114.55.0.7:7000/iotsprod-api/ai/mc/camera/subscribe/image/callback
  251. sms:
  252. sign: 云飞科技
  253. accessId: LTAI4G7tFh5Nk4KXZoSPk1D8
  254. accessSecret: RV4S2SfbLPoFNjlI4uIOoA0J1LQPQc
  255. frequency:
  256. #一天五次,同一个类消息,同一个手机号
  257. day: 5