spring:
  boot:
    admin:
      client:
        enabled: true
        url:
          - ${pcp.services.admin}
        auto-registration: true
        auto-deregistration: true
        register-once: true
        instance:
          service-base-url: ${pcp.services.config}
          management-base-url: ${pcp.services.config}
  cloud:
    config:
      server:
        git:
          uri: ${CONFIG_GIT_URI:}
          default-label: ${CONFIG_GIT_DEFAULT_LABEL:main}
          search-paths: ${CONFIG_GIT_SEARCH_PATHS:config-repo}
          clone-on-start: ${CONFIG_GIT_CLONE_ON_START:false}
          force-pull: ${CONFIG_GIT_FORCE_PULL:true}
          timeout: ${CONFIG_GIT_TIMEOUT:10}
          username: ${CONFIG_GIT_USERNAME:oauth2}
          password: ${CONFIG_GIT_TOKEN:}
          skipSslValidation: ${CONFIG_GIT_SKIP_SSL_VALIDATION:false}

server:
  port: ${SERVER_PORT:8888}

management:
  endpoints:
    web:
      exposure:
        include: health,info,env,refresh
  endpoint:
    health:
      show-details: always

logging:
  level:
    org.springframework.cloud.config.server: INFO

---
spring:
  config:
    activate:
      on-profile: local

---
spring:
  config:
    activate:
      on-profile: test
  cloud:
    config:
      server:
        git:
          uri: https://gitlab.example.invalid/group/config-repo.git
          clone-on-start: false
