Skip to content

Instantly share code, notes, and snippets.

@roberthamel
Last active November 26, 2018 18:59
Show Gist options
  • Save roberthamel/683b362a517424316e2c7945d16959ce to your computer and use it in GitHub Desktop.
Save roberthamel/683b362a517424316e2c7945d16959ce to your computer and use it in GitHub Desktop.
management:
endpoints:
web:
exposure:
include: '*'
hystrix:
stream:
queue:
enabled: false
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 30000
---
spring:
profiles: products
databaseUrl: ${cloud.services.mysql.connection.jdbcurl:jdbc:h2:mem:test}
products:
a: ${PRODUCTS_A:#{null}}
b: ${PRODUCTS_B:#{null}}
c: ${PRODUCTS_C:#{null}}
app:
version: cloud
---
spring:
profiles: discovery
eureka:
instance:
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
preferIpAddress: true
lease-renewal-interval-in-seconds: 10
lease-expiration-duration-in-seconds: 20
client:
registerWithEureka: true
serviceUrl:
defaultZone: http://service-registry/eureka/
feign:
hystrix:
enabled: true
---
spring:
profiles: mysql
datasource:
tomcat:
url: ${cloud.services.mysql.connection.jdbcurl}
username: ${cloud.services.mysql.connection.username}
password: ${cloud.services.mysql.connection.password}
test-on-borrow: true
jpa:
database: mysql
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL55Dialect
---
spring:
profiles: security
security:
oauth2:
client:
client-id: webstore
client-secret: webstoresecret
access-token-uri: http://uaa/oauth/token
user-authorization-uri: http://uaa/oauth/authorize
scope: openid,product.read,product.write,cart.read,cart.write
resource:
user-info-uri: http://uaa/userinfo
token-info-uri: http://uaa/introspect
prefer-token-info: false
hystrix:
shareSecurityContext: true
---
spring:
profiles: zipkin
sleuth:
sampler:
probability: 1.0
zipkin:
baseUrl: http://zipkin/
sample:
zipkin:
enabled: true
---
spring:
profiles: zuul
zuul:
routes:
inventory-service:
path: /inventory/**
serviceId: inventory-service
sensitiveHeaders: ''
stripPrefix: true
cart-service:
path: /cart/**
serviceId: cart-service
sensitiveHeaders: ''
stripPrefix: true
product-service:
path: /product/**
serviceId: product-service
sensitiveHeaders: ''
stripPrefix: true
ignored-services: '*'
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment