forked from kidgrow-microservices-platform

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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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_${spring.profiles.active}?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: LTAI4GG27Q85eTB5YvVKZAyg
#      accessKeySecret: thEEFtCxYTPQGrHl0KmUUBXr7gWKdh
##      endpoint: kidgrow.oss-cn-beijing-internal.aliyuncs.com
#      endpoint: 123.kidgrow.cloud
##      endpoint: oss-accelerate.aliyuncs.com
#      bucketName: kidgrow
#      #注意加上/
#      domain: http://123.kidgrow.cloud/
##      domain: https://kidgrow.oss-accelerate.aliyuncs.com/
#      folder: kidgrow/
      access-key: ${kidgrow.oss.access-key}
      accessKeySecret: ${kidgrow.oss.accessKeySecret}
        #      endpoint: kidgrow.oss-cn-beijing-internal.aliyuncs.com
      endpoint: ${kidgrow.oss.endpoint}
        #      endpoint: oss-accelerate.aliyuncs.com
      bucketName: ${kidgrow.oss.bucketName}
        #注意加上/
      domain: ${kidgrow.oss.domain}
        #      domain: https://kidgrow.oss-accelerate.aliyuncs.com/
      folder: kidgrow/
 
  swagger:
    base-package: com.kidgrow.filecenter.controller
    description: 文件上传服务接口文档
    enabled: true
    title: 文件上传服务
    version: 1.0
 
#fdfs:
#  soTimeout: 1500
#  connectTimeout: 600
#  trackerList: ${kidgrow.fdfs.trackerList}
 
 
#创蓝
chuanglan:
  sms:
    sendUrl: http://smssh1.253.com/msg/send/json
    account: N2561124
    password: Mguj6qlRWX7b5e
    num: 5
    timeLimit: 720000
#阿里云相关
aliyun:
  sms:
    accessKeyId: LTAIX1whVSBUUKNW
    accessKeySecret: j7UywJDoUkPRvGafKrik1pyYtEC2ys
    signName: 微课堂
    templates:
      ### 模板key
      key1:
        ## 模板code 需要在阿里云控制台设置
        templateCode: SMS_151231928 # 与阿里云设置的保持一致,模板内容需在后面加上,方便使用:****
      key2:
        templateCode: SMS_105665033 # 与阿里云设置的保持一致,模板内容需在后面加上,方便使用:****
  commonRequest:
    domain: dysmsapi.aliyuncs.com
    ## 版本号
    version: 2017-05-25
    ##
    action: SendSms
 
## 短信验证码过期时间,时间单位/秒
sms:
  verificationCode:
    ## 短信验证码过期时间,时间单位/秒
    timeOut: 120
    ##  缓存手机号key值前缀
    prefix: "sms:aliyun:code:"