application-template.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. server:
  2. port: 8005
  3. connection-timeout: 60000
  4. tomcat:
  5. min-spare-threads: 50
  6. max-threads: 500
  7. accesslog:
  8. enabled: true
  9. buffered: true
  10. directory: /var/logs
  11. file-date-format: -yyyy-MM-dd
  12. pattern: common
  13. prefix: tomcat-websocket
  14. rename-on-rotate: false
  15. request-attributes-enabled: false
  16. rotate: true
  17. suffix: .log
  18. eureka:
  19. client:
  20. serviceUrl:
  21. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  22. instance:
  23. lease-renewal-interval-in-seconds: 5
  24. prefer-ip-address: true
  25. spring:
  26. servlet:
  27. multipart:
  28. max-file-size: 150MB
  29. max-request-size: 150MB
  30. application:
  31. name: websocket-server
  32. data:
  33. mongodb:
  34. uri: mongodb://root:dayayuemeng2019@47.114.1.200:27017/mec_dev
  35. datasource:
  36. name: test
  37. url: jdbc:mysql://rm-bp13774a2o87ti8c7mo.mysql.rds.aliyuncs.com:3306/mec_pro?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  38. username: mec_pro
  39. password: mec@Pro9
  40. # 使用druid数据源
  41. type: com.alibaba.druid.pool.DruidDataSource
  42. druid:
  43. connection-init-sqls: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
  44. driver-class-name: com.mysql.cj.jdbc.Driver
  45. filters: stat
  46. maxActive: 50
  47. initialSize: 10
  48. maxWait: 60000
  49. minIdle: 1
  50. timeBetweenEvictionRunsMillis: 60000
  51. minEvictableIdleTimeMillis: 300000
  52. validationQuery: select 'x'
  53. testWhileIdle: true
  54. testOnBorrow: false
  55. testOnReturn: false
  56. poolPreparedStatements: true
  57. maxOpenPreparedStatements: 20
  58. redis:
  59. host: 47.114.1.200
  60. port: 6379
  61. password: dyym
  62. database: 1
  63. #连接超时时间(毫秒)
  64. timeout: 10000
  65. jedis:
  66. pool:
  67. #连接池最大连接数(使用负值表示没有限制)
  68. max-active: 20
  69. #连接池最大阻塞等待时间(使用负值表示没有限制)
  70. max-wait: 10000
  71. #连接池中的最大空闲连接
  72. max-idle: 10
  73. #连接池中的最小空闲连接
  74. min-idle: 5
  75. mybatis:
  76. mapperLocations: classpath:config/mybatis/*.xml
  77. # configuration:
  78. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  79. swagger:
  80. base-package: com.ym.mec.web.controller
  81. ##认证
  82. security:
  83. oauth2:
  84. client:
  85. client-id: app
  86. client-secret: app
  87. resource:
  88. token-info-uri: http://localhost:8001/oauth/check_token
  89. #spring boot admin 相关配置
  90. management:
  91. endpoints:
  92. web:
  93. exposure:
  94. include: "*"
  95. endpoint:
  96. health:
  97. show-details: ALWAYS
  98. ribbon:
  99. ReadTimeout: 600000
  100. ConnectTimeout: 60000
  101. logging:
  102. level:
  103. com.ym.mec.auth.api.client.SysUserFeignService: INFO
  104. message:
  105. debugMode: true
  106. ##支付流水隐藏
  107. payment:
  108. hiddenMode: false
  109. #隐藏的支付方式
  110. channel: YQPAY
  111. eseal:
  112. tsign:
  113. projectid: 4438776254
  114. projectSecret: a94cf63d6361084d232f345d71321691
  115. apisUrl: http://smlitsm.tsign.cn:8080/tgmonitor/rest/app!getAPIInfo2
  116. push:
  117. jiguang:
  118. reqURL: https://api.jpush.cn/v3/push
  119. appKey:
  120. student: 0e7422e1d6e73637e678716a
  121. teacher: 7e0282ca92c12c8c45a93bb3
  122. system: 496fc1007dea59b1b4252d2b
  123. masterSecret:
  124. student: c2361016604eab56ab2db2ac
  125. teacher: d47430e2f4755ef5dc050ac5
  126. system: a5e51e9cdb25417463afbf7a
  127. apns_production: false