-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.yml
35 lines (31 loc) · 888 Bytes
/
application.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
eureka:
instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
preferIpAddress: ${DISCOVERY_PREFER_IP:true}
leaseRenewalIntervalInSeconds: 5
leaseExpirationDurationInSeconds: 8
client:
serviceUrl:
defaultZone: ${DISCOVERY_SERVER_URI:http://localhost:8761}/eureka/
healthcheck:
enabled: true
---
spring:
profiles: cloudfoundry
eureka:
instance:
hostname: ${CF_INSTANCE_IP:${vcap.application.uris[0]}}
nonSecurePort: ${CF_INSTANCE_PORT:${PORT:${server.port:80}}}
preferIpAddress: false
client:
serviceUrl:
defaultZone: ${vcap.services.discovery-service.credentials.url}/eureka/
---
spring:
profiles: dev
eureka:
instance:
leaseRenewalIntervalInSeconds: 5
client:
initialInstanceInfoReplicationIntervalSeconds: 5
registryFetchIntervalSeconds: 2