forked from kidgrow-microservices-platform

zhaoxiaohao
2020-07-30 53099817f383f5c6dc0d8a3bc3af11d2b95dbf65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 1000
    min-spare-threads: 30
  port: 8003
 
# mysql
spring:
  application:
    name: filecenter-server
  datasource:
    url: jdbc:mysql://${kidgrow.datasource.ip}:3306/file_center?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    username: ${kidgrow.datasource.username}
    password: ${kidgrow.datasource.password}
#    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      aop-patterns: com.kidgrow.filecenter.controller.*
eureka:
  instance:
    ###注册中心ip地址
    hostname: ${kidgrow.eureka.instance.hostname}
    instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
    prefer-ip-address: true
  client:
    serviceUrl:
      defaultZone: ${kidgrow.eureka.client.serviceUrl.defaultZone}
 
mybatis-plus:
  mapper-locations: classpath:/mapper/*.xml
  #实体扫描,多个package用逗号或者分号分隔
  typeAliasesPackage: com.kidgrow.filecenter.model
  global-config:
    db-config:
      id-type: input
 
 
 
kidgrow:
#  fdfs:
#    web-url: 192.168.28.130
#    trackerList: ${kidgrow.fdfs.web-url}:22122
  file-server:
    type: aliyun
    fdfs:
      web-url: ${kidgrow.fdfs.web-url}
    #oss配置
    oss:
#      access-key: j977Ii3DODvQXzE241Z6ouW9so4Q6_6PeOPwN5UZ
#      accessKeySecret: W8ArRp3mr-w3n4R-lHEvSFzGdgdrYfC9wHkZlqec
#      endpoint: http://q68nl7reu.bkt.clouddn.com
#      bucketName: kidgrow
#      domain: kidgrow.s3-cn-east-1.qiniucs.com
      access-key: LTAI4FennfcwZupz3B6hkK3N
      accessKeySecret: NzBBGe8SS41qJlp0nA3tlJ3t74lBZM
#      endpoint: oss-accelerate.aliyuncs.com
      endpoint: kidgrow.oss-cn-beijing-internal.aliyuncs.com
      bucketName: kidgrow
      #注意加上/   http://123.kidgrow.cloud
      domain: /
      folder: kidgrow/
  #oss内网访问的地址
#  neiwang: kidgrow.oss-cn-beijing-internal.aliyuncs.com
 
  swagger:
    base-package: com.kidgrow.filecenter.controller
    description: 文件上传服务接口文档
    enabled: true
    title: 文件上传服务
    version: 1.0
 
#fdfs:
#  soTimeout: 1500
#  connectTimeout: 600
#  trackerList: ${kidgrow.fdfs.trackerList}