forked from kidgrow-microservices-platform

zhaoxiaohao
2020-05-22 f21c78ae0e3c410c6ba5be77277b5b491aca3af1
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
#创蓝
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:"
 
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 1000
    min-spare-threads: 30
  port: 8008
#    context-path: /
 
 
 
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}
spring:
  application:
    name: sms-service-server