Browse Source

Fix eureka instance metadata in Cloud Foundry example

pull/6/head
Dave Syer 10 years ago
parent
commit
873854810a
  1. 4
      docs/src/main/asciidoc/spring-cloud-netflix.adoc

4
docs/src/main/asciidoc/spring-cloud-netflix.adoc

@ -107,9 +107,9 @@ Cloudfoundry has a global router so that all instances of the same app have the @@ -107,9 +107,9 @@ Cloudfoundry has a global router so that all instances of the same app have the
----
eureka:
instance:
hostname: ${vcap.application.uris[0]}
nonSecurePort: 80
metadataMap:
hostname: ${vcap.application.uris[0]}
nonSecurePort: 80
instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}}}
----

Loading…
Cancel
Save