forked from kidgrow-microservices-platform

zhaoxiaohao
2020-11-27 9a86c4e3283b412e499c683a0b28ed7c9856c55f
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
server:
  port: 8023
 
#eureka
eureka:
  instance:
    ###注册中心ip地址
    hostname: ${kidgrow.eureka.instance.hostname}
    instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
    prefer-ip-address: true
    leaseRenewalIntervalInSeconds: 10
    health-check-url-path: /actuator/health
  client:
    serviceUrl:
      defaultZone: ${kidgrow.eureka.client.serviceUrl.defaultZone}
  #spring boot admin设置权限,故需要通过账号密码获取注册信息
#  instance:
#    metadata-map:
#      user.name: admin
#      user.password: 123456
 
spring:
  application:
    name: admin
  boot:
    admin:
      ui:
        title: KidgrowAdmin-Server
      notify:
        mail:
          from: 4345453@qq.com
          to: 64294050@kidgrow.com,4345453@kidgrow,1024030301@kidgrow.com
  mail:
    host: smtp.qq.com
    default-encoding: utf-8
    username: 4345453@qq.com
    password: kqqgvhgskdrpbgia
    properties:
      mail:
        smtp:
          auth: true
          starttls:
            enable: true
            required: true
 
management:
  endpoints:
    web:
      exposure:
        include: '*'
  endpoint:
    health:
      show-details: ALWAYS