# ===================================================================
# Spring Cloud <% if (serviceDiscoveryType === 'consul') { %>Consul <% } %>Config bootstrap configuration for the "prod" profile
# ===================================================================

spring:
    cloud:
      <%_ if (serviceDiscoveryType === 'eureka') { _%>
        config:
            fail-fast: true
            retry:
                initial-interval: 1000
                max-interval: 2000
                max-attempts: 100
            uri: http://admin:admin@localhost:8761/config
            # name of the config server's property source (file.yml) that we want to use
            name: <%= baseName %>
            profile: prod # profile(s) of the property source
            label: master # toggle to switch to a different version of the configuration as stored in git
            # it can be set to any label, branch or commit of the config source git repository
      <%_ } _%>
      <%_ if (serviceDiscoveryType === 'consul') { _%>
        consul:
            config:
                fail-fast: true
                format: yaml # set this to "files" if using git2consul
                profile-separator: "-"
            retry:
                initial-interval: 1000
                max-interval: 2000
                max-attempts: 100
      <%_ } _%>
