forked from spring-cloud-samples/config-repo
-
Notifications
You must be signed in to change notification settings - Fork 30
/
application.yml
50 lines (47 loc) · 1.6 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
info:
description: Spring Cloud Samples
url: https://github.com/spring-cloud-samples
---
spring:
profiles: cloud
cloud:
config:
uri: ${vcap.services.${PREFIX:}configserver.credentials.uri:http://${PREFIX:}${configserver.${application.domain:cfapps.io}}}
cloudfoundry:
sso:
tokenUri: ${vcap.services.${PREFIX:}uaa.credentials.tokenUri:}
authorizationUri: ${vcap.services.${PREFIX:}uaa.credentials.authorizationUri:}
tokenInfoUri: ${vcap.services.${PREFIX:}uaa.credentials.tokenInfoUri:}
clientId: ${vcap.services.${PREFIX:}uaa.credentials.clientId:}
clientSecret: ${vcap.services.${PREFIX:}uaa.credentials.clientSecret:}
resource:
tokenInfoUri: ${vcap.services.${PREFIX:}resource.credentials.tokenInfoUri:}
clientId: ${vcap.services.${PREFIX:}resource.credentials.clientId:}
clientSecret: ${vcap.services.${PREFIX:}resource.credentials.clientSecret:}
serviceId: ${PREFIX:}resource
application:
domain: ${APPLICATION_DOMAIN:cfapps.io}
endpoints:
restart: enabled
eureka:
instance:
hostname: ${PREFIX:}${spring.application.name}.${application.domain:cfapps.io}
nonSecurePort: 80
client:
serviceUrl:
defaultZone: ${vcap.services.${PREFIX:}eureka.credentials.uri:http://${PREFIX:}eureka.${application.domain:cfapps.io}}/eureka/
---
spring:
profiles: docker
cloud:
config:
uri: http://${CONFIGSERVER_1_PORT_8888_TCP_ADDR:localhost}:8888
endpoints:
restart: enabled
eureka:
instance:
nonSecurePort: 80
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://${EUREKA_1_PORT_8761_TCP_ADDR:localhost}:8761/eureka/