application-test.yml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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: true
  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端口
  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: INFO
  42. org.springframework: INFO
  43. # 用户配置
  44. user:
  45. password:
  46. # 密码最大错误次数
  47. maxRetryCount: 5
  48. # 密码锁定时间(默认10分钟)
  49. lockTime: 10
  50. # Spring配置
  51. spring:
  52. autoconfigure:
  53. exclude:
  54. - org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
  55. data:
  56. mongodb:
  57. uri: mongodb://root:123456@127.0.0.1:27017/com_yunfeiyun_iot
  58. # 资源信息
  59. messages:
  60. # 国际化资源文件路径
  61. basename: i18n/messages
  62. datasource:
  63. type: com.alibaba.druid.pool.DruidDataSource
  64. driverClassName: com.mysql.cj.jdbc.Driver
  65. druid:
  66. # 主库数据源
  67. master:
  68. url: jdbc:mysql://localhost:3306/com_yunfeiyun_agmp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
  69. username: root
  70. password: 123456
  71. # 从库数据源
  72. slave:
  73. # 从数据源开关/默认关闭
  74. enabled: false
  75. url:
  76. username:
  77. password:
  78. # 初始连接数
  79. initialSize: 100
  80. # 最小连接池数量
  81. minIdle: 100
  82. # 最大连接池数量
  83. maxActive: 200
  84. # 配置获取连接等待超时的时间
  85. maxWait: 60000
  86. # 配置连接超时时间
  87. connectTimeout: 30000
  88. # 配置网络超时时间
  89. socketTimeout: 60000
  90. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  91. timeBetweenEvictionRunsMillis: 60000
  92. # 配置一个连接在池中最小生存的时间,单位是毫秒
  93. minEvictableIdleTimeMillis: 300000
  94. # 配置一个连接在池中最大生存的时间,单位是毫秒
  95. maxEvictableIdleTimeMillis: 900000
  96. # 配置检测连接是否有效
  97. validationQuery: SELECT 1 FROM DUAL
  98. testWhileIdle: true
  99. testOnBorrow: false
  100. testOnReturn: false
  101. webStatFilter:
  102. enabled: true
  103. statViewServlet:
  104. enabled: true
  105. # 设置白名单,不填则允许所有访问
  106. allow:
  107. url-pattern: /druid/*
  108. # 控制台管理用户名和密码
  109. login-username: ruoyi
  110. login-password: 123456
  111. filter:
  112. stat:
  113. enabled: true
  114. # 慢SQL记录
  115. log-slow-sql: true
  116. slow-sql-millis: 1000
  117. merge-sql: true
  118. wall:
  119. config:
  120. multi-statement-allow: true
  121. # 文件上传
  122. servlet:
  123. multipart:
  124. # 单个文件大小
  125. max-file-size: 100MB
  126. # 设置总上传的文件大小
  127. max-request-size: 200MB
  128. # 服务模块
  129. devtools:
  130. restart:
  131. # 热部署开关
  132. enabled: true
  133. rabbitmq:
  134. # 在物联网系统中 agmp 是 iotm 和 iots 之间通信使用
  135. agmp:
  136. host: localhost
  137. port: 5672
  138. username: user
  139. password: 123456
  140. virtual-host: /agmp-saas-iot
  141. connection-timeout: 15000
  142. publisher-returns: true
  143. enabled: true
  144. # 物联网与门户之间使用
  145. agmpIot:
  146. host: localhost
  147. port: 5672
  148. username: user
  149. password: 123456
  150. virtual-host: /agmp-saas
  151. connection-timeout: 15000
  152. publisher-returns: true
  153. enabled: true
  154. # redis 配置
  155. redis:
  156. # 地址
  157. host: localhost
  158. # 端口,默认为6379
  159. port: 6379
  160. # 数据库索引
  161. database: 2
  162. # 密码
  163. password: 123456
  164. # 连接超时时间
  165. timeout: 10s
  166. lettuce:
  167. pool:
  168. # 连接池中的最小空闲连接
  169. min-idle: 0
  170. # 连接池中的最大空闲连接
  171. max-idle: 8
  172. # 连接池的最大数据库连接数
  173. max-active: 8
  174. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  175. max-wait: -1ms
  176. # token配置
  177. token:
  178. # 令牌自定义标识
  179. header: Authorization
  180. # 令牌密钥
  181. secret: abcdefghijklmnopqrstuvwxyz
  182. # 令牌有效期(默认30分钟)
  183. expireTime: 30
  184. # MyBatis配置
  185. mybatis:
  186. # 搜索指定包别名
  187. typeAliasesPackage: com.yunfeiyun.**.domain
  188. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  189. mapperLocations: classpath*:mapper/**/*Mapper.xml
  190. # 加载全局的配置文件
  191. configLocation: classpath:mybatis/mybatis-config.xml
  192. # PageHelper分页插件
  193. pagehelper:
  194. helperDialect: mysql
  195. supportMethodsArguments: true
  196. params: count=countSql
  197. # Swagger配置
  198. swagger:
  199. # 是否开启swagger
  200. enabled: true
  201. # 请求前缀
  202. pathMapping: /dev-api
  203. # 防止XSS攻击
  204. xss:
  205. # 过滤开关
  206. enabled: true
  207. # 排除链接(多个用逗号分隔)
  208. excludes: /system/notice
  209. # 匹配链接
  210. urlPatterns: /system/*,/tool/*
  211. network:
  212. ipaddrLogin: http://192.168.1.231/
  213. ipaddrSso: http://192.168.1.231/
  214. vueport: 7000
  215. ssoport: 9002
  216. icsport: 8023
  217. wprport: 8027
  218. fmsIp: localhost
  219. fmsPort: 8021
  220. portal:
  221. ssoEnabled: true
  222. ssoLoginUrl: ${network.ipaddrLogin}:${network.vueport}/portal/login?redirect=
  223. ssoTokenUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/verifyToken
  224. ssoSessionUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/registerSession
  225. ssoLogoutUrl: ${network.ipaddrSso}:${network.ssoport}/sso/auth/logout
  226. appLogoutUrl: ${network.ipaddrSso}:${network.icsport}/sso/logoutToken
  227. syncEnabled: true
  228. orgEnabled: true
  229. policy:
  230. # localSpace(本地空间), cloud 资源服务器
  231. upload:
  232. uploadType: localSpace
  233. ossconfig:
  234. ossType: 1
  235. ossCloud:
  236. aliYun:
  237. accessType: 1
  238. aliyunDomain: https://yunfei-agm.oss-cn-hangzhou.aliyuncs.com
  239. aliyunPrefix: agmp
  240. aliyunEndPoint: oss-cn-hangzhou.aliyuncs.com
  241. aliyunAccessKeyId: LTAI4G7tFh5Nk4KXZoSPk1D8
  242. aliyunAccessKeySecret: RV4S2SfbLPoFNjlI4uIOoA0J1LQPQc
  243. aliyunBucketName: yunfei-agm
  244. qCloud:
  245. qcloudDomain:
  246. qcloudPrefix:
  247. qcloudSecretId:
  248. qcloudSecretKey:
  249. qcloudBucketName: yunfei-agm
  250. # table(表), cache(缓存)
  251. water: table
  252. queue:
  253. productRouter:
  254. consumeRouter:
  255. ackEnabled: true
  256. service:
  257. url:
  258. portal: http://127.0.0.1:7000/portalprod-api/
  259. iot:
  260. customerId: 1
  261. sassAble: false
  262. ai:
  263. rt:
  264. callBackUrl: http://114.55.0.7:7000/iotsprod-api/ai/mc/camera/subscribe/image/callback
  265. weather:
  266. api: http://open.nyzhwlw.com:10001/yf_weather
  267. username: yunfeisaas
  268. password: yf@yunfeisaas
  269. map:
  270. gaode:
  271. api: http://restapi.amap.com
  272. key: 78ce288400f4fc6d9458989875c833c2