misc-server-dev.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. spring:
  2. sleuth:
  3. sampler:
  4. percentage: 1.0
  5. hystrix:
  6. strategy:
  7. enabled: false
  8. datasource:
  9. dynamic:
  10. primary: master
  11. datasource:
  12. master:
  13. url: jdbc:mysql://172.16.88.234:3306/callcenterdb3.0?useUnicode=true&characterEncoding=utf-8
  14. username: root
  15. password: admin01
  16. max-idle: 10
  17. max-wait: 10000
  18. min-idle: 5
  19. initial-size: 5
  20. validation-query: SELECT 1
  21. test-on-borrow: false
  22. test-while-idle: true
  23. time-between-eviction-runs-millis: 18800
  24. jdbc-interceptors: ConnectionState;SlowQueryReport(threshold=0)
  25. driver-class-name: com.mysql.jdbc.Driver
  26. autoconfigure:
  27. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  28. mail:
  29. host: smtp.qq.com
  30. port: 587
  31. username: 875160176@qq.com
  32. password: dzkwtwqzwyvubchj
  33. properties:
  34. mail:
  35. smtp:
  36. auth: true
  37. starttls:
  38. enable: true
  39. thymeleaf:
  40. prefix: classpath:/templates/
  41. suffix: .html
  42. mode: LEGACYHTML5
  43. encoding: UTF-8
  44. content-type: text/html
  45. cache: false
  46. #mybatis-plus
  47. mybatis-plus:
  48. configuration:
  49. cache-enabled: true
  50. mapper-locations: classpath*:/mapper/**/*.xml
  51. #实体扫描,多个package用逗号或者分号分隔
  52. typeAliasesPackage: ins.platform.po
  53. #typeEnumsPackage: com.baomidou.springboot.entity.enums
  54. global-config:
  55. # 数据库相关配置
  56. db-config:
  57. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  58. id-type: id_worker
  59. #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
  60. field-strategy: not_empty
  61. #驼峰下划线转换
  62. column-underline: true
  63. #数据库大写下划线转换
  64. #capital-mode: true
  65. #逻辑删除配置
  66. logic-delete-value: 0
  67. logic-not-delete-value: 1
  68. db-type: h2
  69. #刷新mapper 调试神器
  70. refresh: true
  71. #工作流
  72. bpm:
  73. rule: WorkOrderNodeRule
  74. server:
  75. port: 18020
  76. address:
  77. record: /home/record/
  78. saa:
  79. power: false
  80. basePackage: ins/**/po
  81. #aodFeed:
  82. # base-url: http://172.42.3.34:9001
  83. # token: abc
  84. logging:
  85. level: debug
  86. #短信配置
  87. sms:
  88. accessKeyId: LTAIdhCtJteymPnw
  89. accessSecret: zu2iYaMLOm1eargpedNBK0fPqH8FHI
  90. signName: 中科软系统
  91. ai:
  92. dial-url: http://172.16.88.235:19000/
  93. apiins:
  94. url: https://wxpb-dev.apiins.com/VideoWorld/
  95. serviceUrl: http://112.95.154.98:8611/oms_tm/smsSend.service
  96. aliyun:
  97. accessKeyId: LTAIdhCtJteymPnw
  98. accessKeySecret: zu2iYaMLOm1eargpedNBK0fPqH8FHI
  99. appKey: A77cA5m7r84WyAEu
  100. addressKey: Axqddvzmul1y
  101. #外网获取手机归属
  102. ascription:
  103. url: http://api.online-service.vip/phone
  104. # 高德地图appKey
  105. amap:
  106. key: ff4903d14da58237962cfa1406061d37
  107. #内外网标识#true为内网#false为外网
  108. network:
  109. intranet: true
  110. ################################################################################################################
  111. ### SocketIO 配置:
  112. ################################################################################################################
  113. socketio:
  114. redis:
  115. redisson:
  116. enabled: false
  117. server: single
  118. single:
  119. address: redis://localhost:6379
  120. #password: Cs123456
  121. client-name: redis
  122. connection-minimum-idle-size: 5
  123. connection-pool-size: 50
  124. template:
  125. enabled: false
  126. # 服务端配置
  127. server:
  128. enabled: true
  129. ## host在本地测试可以设置为localhost或者本机IP,在Linux服务器跑可换成服务器IP
  130. #hostname: 172.42.3.167
  131. hostname: localhost
  132. ## netty启动端口
  133. port: 9095
  134. # 替换默认 /socket.io 路径
  135. context: /softPhone
  136. ## 添加头部版本信息
  137. add-version-header: true
  138. ## Ping消息间隔(毫秒),默认25秒。客户端向服务器发送一条心跳消息间隔
  139. ping-interval: 25000
  140. ## Ping消息超时时间(毫秒),默认60秒,这个时间间隔内没有接收到心跳消息就会发送超时事件
  141. ping-timeout: 60000
  142. ## 设置最大每帧处理数据的长度,防止他人利用大数据来攻击服务器
  143. max-frame-payload-length: 1048576
  144. ## 设置http交互最大内容长度
  145. max-http-content-length: 1048576
  146. ## socket连接数大小(如只监听一个端口boss线程组为1即可)
  147. boss-threads: 1
  148. transports:
  149. - polling
  150. - websocket
  151. worker-threads: 100
  152. ## 协议升级超时时间(毫秒),默认10秒。HTTP握手升级为ws协议超时时间
  153. upgrade-timeout: 15000
  154. ## socket配置
  155. socket-config:
  156. reuse-address: true
  157. tcp-no-delay: true
  158. so-linger: 0
  159. ack-mode: auto
  160. allow-custom-requests: true
  161. ## sessionID 通过请求头io来获取
  162. random-session: false