# bootstrap.yml文件中的内容不能放到application.yml中，否则config部分无法被加载
# 因为config部分的配置先于application.yml被加载，而bootstrap.yml中的配置会先于application.yml加载
server:
  port: 8769
spring:
  application:
    name: config-service
  profiles:
    #  指定为native,开启本地存储配置的方式，spring cloud微服务配置中心默认有3种方式：远程git仓库、远程SVN、本地方式（本地目录）
    active: ${SPRING_PROFILES_ACTIVE:native}
  # spring boot admin配置
  boot:
    admin:
      client:
        url: http://${ADMIN_HOST:localhost}:${ADMIN_PORT:8085}/admin
        username: ${ADMIN_USERNAME:admin}
        password: ${ADMIN_PASSWORD:11}
        instance:
          service-base-url: http://${CONFIG_SERVICE_HOST:localhost}:${server.port}
  # 使用consul作为注册中心
  cloud:
    consul:
      host: ${CONSUL_HOST:localhost}
      port: ${CONSUL_PORT:8500}
  rabbitmq:
    host: ${RABBIT_HOST:localhost}
    port: ${RABBIT_PORT:5672}
    username: ${RABBITMQ_DEFAULT_USER:guest}
    password: ${RABBITMQ_DEFAULT_PASS:guest}