-
Notifications
You must be signed in to change notification settings - Fork 890
/
application.yml
58 lines (54 loc) · 1.7 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
50
51
52
53
54
55
56
57
info:
description: Spring Cloud Samples
url: https://github.com/spring-cloud-samples
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
foo: baz
---
spring:
config.activate.on-profile: cloud
cloud:
config:
uri: ${vcap.services.${PREFIX:}configserver.credentials.uri:http://user:password@${PREFIX:}configserver.${application.domain:cfapps.io}}
oauth2:
client:
tokenUri: ${vcap.services.${PREFIX:}sso.credentials.tokenUri:}
authorizationUri: ${vcap.services.${PREFIX:}sso.credentials.authorizationUri:}
clientId: ${vcap.services.${PREFIX:}sso.credentials.clientId:}
clientSecret: ${vcap.services.${PREFIX:}sso.credentials.clientSecret:}
resource:
tokenInfoUri: ${vcap.services.${OAUTH2_RESOURCE_SERVICEID:${oauth2.resource.serviceId:sso}}.credentials.tokenInfoUri:}
serviceId: ${PREFIX:}resource
application:
domain: ${APPLICATION_DOMAIN:cfapps.io}
endpoints:
restart: enabled
eureka:
password: password
instance:
hostname: ${vcap.application.uris[0]:localhost}
nonSecurePort: 80
client:
serviceUrl:
defaultZone: ${vcap.services.${PREFIX:}eureka.credentials.uri:http://user:${eureka.password:}@${PREFIX:}eureka.${application.domain:cfapps.io}}/eureka/
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
---
spring:
config.activate.on-profile: 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/