Skip to content

Commit

Permalink
Spring Cloud Consul: improve bootstrap properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgrimaud committed Jan 6, 2022
1 parent bb006d1 commit 991f6bf
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@
#====================================================================

spring.application.name={{baseName}}
spring.cloud.consul.discovery.health-check-path=/management/health
spring.cloud.consul.discovery.tags[0][email protected]@
spring.cloud.consul.discovery.tags[1]=context-path=${server.servlet.context-path:}

spring.cloud.consul.host=localhost
spring.cloud.consul.port=8500

spring.cloud.consul.config.format=yaml
spring.cloud.consul.config.profile-separator=-
spring.cloud.consul.config.watch.enabled=false

spring.cloud.consul.discovery.health-check-path=/management/health
spring.cloud.consul.discovery.tags[0][email protected]@
spring.cloud.consul.discovery.tags[1]=context-path=${server.servlet.context-path:}
spring.cloud.consul.discovery.tags[2]=profile=${spring.profiles.active:}
spring.cloud.consul.discovery.tags[3]=git-version=${git.commit.id.describe:}
spring.cloud.consul.discovery.tags[4]=git-commit=${git.commit.id.abbrev:}
spring.cloud.consul.discovery.tags[5]=git-branch=${git.branch:}

spring.cloud.consul.discovery.instance-id={{baseName}}:${spring.application.instance-id:${random.value}}
spring.cloud.consul.discovery.service-name={{baseName}}
spring.cloud.consul.discovery.prefer-ip-address=true

0 comments on commit 991f6bf

Please sign in to comment.